Skip to content

Commit acd27bb

Browse files
authored
editorial changes
1 parent 06bb46f commit acd27bb

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

support/azure/azure-monitor/app-insights/telemetry/java-standalone-troubleshoot.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Troubleshoot Azure Monitor Application Insights for Java
33
description: This article presents troubleshooting information for the Java agent for Azure Monitor Application Insights.
44
ms.topic: conceptual
5-
ms.date: 06/24/2024
5+
ms.date: 01/10/2025
66
editor: v-jsitser
77
ms.reviewer: aaronmax, jeanbisutti, trstalna, toddfous, heya, v-leedennis
88
ms.service: azure-monitor
@@ -242,27 +242,28 @@ Alternatively, you can try the following experimental feature: [Startup time imp
242242

243243
## Understand duplicated operation ID
244244

245-
Application logic can result in the operation ID being reused by multiple telemetry data, as shown by [this example](/azure/azure-monitor/app/distributed-trace-data#example).
246-
247-
The duplication may also come from incoming requests. To spot this second possibility:
248-
* Enable the capture of the `traceparent` header in the `applicationinsigths.json ` file
249-
```json
250-
{
251-
"preview": {
252-
"captureHttpServerHeaders": {
253-
"requestHeaders": [
254-
"traceparent"
255-
]
245+
Application logic can result in the operation ID to be reused by multiple telemetry items, as shown in [this example](/azure/azure-monitor/app/distributed-trace-data#example). The duplication might also come from incoming requests. To identify this, use one of the following methods:
246+
247+
* Enable the capture of the `traceparent` header in the **applicationinsigths.json** file as follows:
248+
249+
```json
250+
{
251+
"preview": {
252+
"captureHttpServerHeaders": {
253+
"requestHeaders": [
254+
"traceparent"
255+
]
256+
}
257+
}
256258
}
257-
}
258-
}
259-
```
260-
* Enable [self-diagnostics](/azure/azure-monitor/app/java-standalone-config#self-diagnostics) at the DEBUG level and restart the application.
259+
```
260+
* Enable [self-diagnostics](/azure/azure-monitor/app/java-standalone-config#self-diagnostics) at the DEBUG level and then restart the application.
261261

262-
In the following log example, the operation id is not populated by Application Insights but from an incoming request:
263-
```
264-
{"ver":1,"name":"Request",...,"ai.operation.id":"4e757357805f4eb18705abd24326b550)","ai.operation.parentId":"973487efc3db7d03"},"data":{"baseType":"RequestData","baseData":{...,"properties":{"http.request.header.traceparent":"00-4e757357805f4eb18705abd24326b550-973487efc3db7d03-01", ...}}}}
265-
```
262+
In the following log example, the operation ID comes from an incoming request, not Application Insights:
263+
264+
```output
265+
{"ver":1,"name":"Request",...,"ai.operation.id":"4e757357805f4eb18705abd24326b550)","ai.operation.parentId":"973487efc3db7d03"},"data":{"baseType":"RequestData","baseData":{...,"properties":{"http.request.header.traceparent":"00-4e757357805f4eb18705abd24326b550-973487efc3db7d03-01", ...}}}}
266+
```
266267

267268
[!INCLUDE [Third-party disclaimer](../../../../includes/third-party-disclaimer.md)]
268269

0 commit comments

Comments
 (0)