Skip to content

Commit 22975a0

Browse files
authored
Prepare azure-monitor-query 1.0.3 patch release (Azure#26948)
* Reset changes to the patch version. * Updating the SDK dependencies for azure-monitor-query * rollback tsg changes * fix spaces
1 parent 1c47518 commit 22975a0

File tree

7 files changed

+23
-26
lines changed

7 files changed

+23
-26
lines changed

eng/jacoco-test-coverage/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
<dependency>
254254
<groupId>com.azure</groupId>
255255
<artifactId>azure-monitor-query</artifactId>
256-
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-monitor-query;current} -->
256+
<version>1.0.3</version> <!-- {x-version-update;com.azure:azure-monitor-query;current} -->
257257
</dependency>
258258
<dependency>
259259
<groupId>com.azure</groupId>

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ com.azure:azure-messaging-webpubsub;1.0.1;1.1.0-beta.1
110110
com.azure:azure-mixedreality-authentication;1.1.4;1.2.0-beta.1
111111
com.azure:azure-mixedreality-remoterendering;1.1.3;1.2.0-beta.1
112112
com.azure:azure-monitor-opentelemetry-exporter;1.0.0-beta.5;1.0.0-beta.6
113-
com.azure:azure-monitor-query;1.0.2;1.1.0-beta.1
113+
com.azure:azure-monitor-query;1.0.2;1.0.3
114114
com.azure:azure-monitor-query-perf;1.0.0-beta.1;1.0.0-beta.1
115115
com.azure:azure-perf-test-parent;1.0.0-beta.1;1.0.0-beta.1
116116
com.azure:azure-quantum-jobs;1.0.0-beta.1;1.0.0-beta.2

sdk/monitor/azure-monitor-query-perf/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>com.azure</groupId>
3333
<artifactId>azure-monitor-query</artifactId>
34-
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-monitor-query;current} -->
34+
<version>1.0.3</version> <!-- {x-version-update;com.azure:azure-monitor-query;current} -->
3535
</dependency>
3636
<dependency>
3737
<groupId>com.azure</groupId>

sdk/monitor/azure-monitor-query/CHANGELOG.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.3 (2022-02-08)
44

5-
### Features Added
6-
7-
### Breaking Changes
5+
### Other Changes
86

9-
### Bugs Fixed
7+
#### Dependency Updates
108

11-
### Other Changes
9+
- Upgraded `azure-core` from `1.24.1` to version `1.25.0`.
10+
- Upgraded `azure-core-http-netty` from `1.11.6` to version `1.11.7`.
1211

1312
## 1.0.2 (2022-01-14)
1413

sdk/monitor/azure-monitor-query/TROUBLESHOOTING.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Troubleshooting Azure Monitor Query client library issues
22

3-
This troubleshooting guide contains instructions to diagnose frequently encountered issues while using the Azure
4-
Monitor Query client library for Java.
3+
This troubleshooting guide contains instructions to diagnose frequently encountered issues while using the Azure
4+
Monitor Query client library for Java.
55

66
## Table of contents
77

@@ -24,7 +24,7 @@ Monitor Query client library for Java.
2424

2525
### Enable client logging
2626

27-
To troubleshoot issues with Azure Monitor query library, it is important to first enable logging to monitor the
27+
To troubleshoot issues with Azure Monitor query library, it is important to first enable logging to monitor the
2828
behavior of the application. The errors and warnings in the logs generally provide
2929
useful insights into what went wrong and sometimes include corrective actions to fix issues.
3030
The Azure client libraries for Java have two logging options:
@@ -67,8 +67,8 @@ Environment variable name: `AZURE_HTTP_LOG_DETAIL_LEVEL`
6767
| body | Logs everything in BASIC, plus all the request and response body. |
6868
| body_and_headers | Logs everything in HEADERS and BODY. |
6969

70-
**NOTE**: When logging the body of request and response, please ensure that they do not contain confidential
71-
information. When logging headers, the client library has a default set of headers that are considered safe to log
70+
**NOTE**: When logging the body of request and response, please ensure that they do not contain confidential
71+
information. When logging headers, the client library has a default set of headers that are considered safe to log
7272
but this set can be updated by updating the log options in the builder as shown below:
7373

7474
```java
@@ -89,34 +89,32 @@ for more details on the various types of credential supported in `azure-identity
8989

9090
### Troubleshooting insufficient access error
9191

92-
If you get an HTTP error with status code 403 (Forbidden), it means that the provided credentials does not have
93-
sufficient permissions to query the workspace.
92+
If you get an HTTP error with status code 403 (Forbidden), it means that the provided credentials does not have
93+
sufficient permissions to query the workspace.
9494
```text
9595
com.azure.core.exception.HttpResponseException: Status code 403, "{"error":{"message":"The provided credentials have insufficient access to perform the requested operation","code":"InsufficientAccessError","correlationId":""}}"
96-
9796
at com.azure.monitor.query/com.azure.monitor.query.LogsQueryAsyncClient.lambda$queryWorkspaceWithResponse$7(LogsQueryAsyncClient.java:346)
9897
```
9998

10099
1. Check that the application or user that is making the request has sufficient permissions:
101100
* You can refer to this document to [manage access to workspaces](https://docs.microsoft.com/azure/azure-monitor/logs/manage-access#manage-access-using-workspace-permissions)
102-
2. If the user or application is granted sufficient privileges to query the workspace, make sure you are
103-
authenticating as that user/application. If you are authenticating using the
101+
2. If the user or application is granted sufficient privileges to query the workspace, make sure you are
102+
authenticating as that user/application. If you are authenticating using the
104103
[DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity/README.md#authenticating-with-defaultazurecredential)
105-
then check the logs to verify that the credential used is the one you expected. To enable logging, see [enable
104+
then check the logs to verify that the credential used is the one you expected. To enable logging, see [enable
106105
client logging](#enable-client-logging) section above.
107106

108107
### Troubleshooting invalid Kusto query
109108

110-
If you get an HTTP error with status code 400 (Bad Request), you may have an error in your Kusto query and you'll
109+
If you get an HTTP error with status code 400 (Bad Request), you may have an error in your Kusto query and you'll
111110
see an error message similar to the one below.
112111

113112
```text
114113
com.azure.core.exception.HttpResponseException: Status code 400, "{"error":{"message":"The request had some invalid properties","code":"BadArgumentError","correlationId":"ff3e2a7e-e95c-4437-82cf-9b15761d0850","innererror":{"code":"SyntaxError","message":"A recognition error occurred in the query.","innererror":{"code":"SYN0002","message":"Query could not be parsed at 'joi' on line [2,244]","line":2,"pos":244,"token":"joi"}}}}"
115-
116114
at com.azure.monitor.query/com.azure.monitor.query.LogsQueryAsyncClient.lambda$queryWorkspaceWithResponse$7(LogsQueryAsyncClient.java:346)
117115
```
118116

119-
The error message may include the line number and position where the Kusto query has an error (line 2, position 244
117+
The error message may include the line number and position where the Kusto query has an error (line 2, position 244
120118
in the above example). You may also refer to the [Kusto Query Language](https://docs.microsoft.
121119
com/en-us/azure/data-explorer/kusto/query/) reference docs to learn more about querying logs using KQL.
122120

@@ -164,7 +162,7 @@ previous section.
164162
LogsQueryClient client = new LogsQueryClientBuilder()
165163
.credential(credential)
166164
.buildClient();
167-
165+
168166
client.queryWorkspaceWithResponse("{workspaceId}", "{kusto-query-string}", QueryTimeInterval.LAST_DAY,
169167
new LogsQueryOptions().setServerTimeout(Duration.ofMinutes(10)), Context.NONE);
170168
```

sdk/monitor/azure-monitor-query/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>com.azure</groupId>
1313
<artifactId>azure-monitor-query</artifactId>
14-
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-monitor-query;current} -->
14+
<version>1.0.3</version> <!-- {x-version-update;com.azure:azure-monitor-query;current} -->
1515

1616
<name>Microsoft Azure SDK for Azure Monitor Logs and Metrics Query</name>
1717
<description>This package contains the Microsoft Azure SDK for querying Azure Monitor's Logs and Metrics data sources.</description>

sdk/monitor/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>com.azure</groupId>
2828
<artifactId>azure-monitor-query</artifactId>
29-
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-monitor-query;current} -->
29+
<version>1.0.3</version> <!-- {x-version-update;com.azure:azure-monitor-query;current} -->
3030
</dependency>
3131
</dependencies>
3232

0 commit comments

Comments
 (0)