Skip to content

Commit 0c21be6

Browse files
authored
Update correlation.md
1 parent b9fc93c commit 0c21be6

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

articles/azure-monitor/app/correlation.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -96,23 +96,23 @@ W3C TraceContext-based distributed tracing is enabled by default in all recent
9696

9797
- **Incoming configuration**
9898

99-
- For Java EE apps, add the following code to the `<TelemetryModules>` tag in ApplicationInsights.xml:
99+
For Java EE apps, add the following code to the `<TelemetryModules>` tag in *ApplicationInsights.xml*:
100100

101-
```xml
102-
<Add type="com.microsoft.applicationinsights.web.extensibility.modules.WebRequestTrackingTelemetryModule>
103-
<Param name = "W3CEnabled" value ="true"/>
104-
<Param name ="enableW3CBackCompat" value = "true" />
105-
</Add>
106-
```
101+
```xml
102+
<Add type="com.microsoft.applicationinsights.web.extensibility.modules.WebRequestTrackingTelemetryModule>
103+
<Param name = "W3CEnabled" value ="true"/>
104+
<Param name ="enableW3CBackCompat" value = "true" />
105+
</Add>
106+
```
107107
108-
- For Spring Boot apps, add these properties:
108+
For Spring Boot apps, add these properties:
109109
110-
- `azure.application-insights.web.enable-W3C=true`
111-
- `azure.application-insights.web.enable-W3C-backcompat-mode=true`
110+
- `azure.application-insights.web.enable-W3C=true`
111+
- `azure.application-insights.web.enable-W3C-backcompat-mode=true`
112112
113113
- **Outgoing configuration**
114114
115-
Add the following code to AI-Agent.xml:
115+
Add the following code to *AI-Agent.xml*:
116116
117117
```xml
118118
<Instrumentation>
@@ -198,7 +198,7 @@ By looking at the [Trace-Context header format](https://www.w3.org/TR/trace-cont
198198
199199
`trace-flags`: `01`
200200
201-
If you look at the request entry that was sent to Azure Monitor, you can see fields populated with the trace header information. You can find the data under Logs (Analytics) in the Azure Monitor Application Insights resource.
201+
If you look at the request entry that was sent to Azure Monitor, you can see fields populated with the trace header information. You can find the data under **Logs (Analytics)** in the Azure Monitor Application Insights resource.
202202
203203
![Screenshot that shows Request telemetry in Logs (Analytics).](./media/opencensus-python/0011-correlation.png)
204204
@@ -317,7 +317,7 @@ To collect custom telemetry, you need to instrument the application with Java 2.
317317
318318
### Role names
319319
320-
You might want to customize the way component names are displayed in the [Application Map](../../azure-monitor/app/app-map.md). To do so, you can manually set the `cloud_RoleName` by taking one of the following actions:
320+
You might want to customize the way component names are displayed in [Application Map](../../azure-monitor/app/app-map.md). To do so, you can manually set `cloud_RoleName` by taking one of the following actions:
321321
322322
- For Application Insights Java, set the cloud role name as follows:
323323
@@ -329,10 +329,10 @@ You might want to customize the way component names are displayed in the [Applic
329329
}
330330
```
331331
332-
You can also set the cloud role name by using the environment variable `APPLICATIONINSIGHTS_ROLE_NAME`.
332+
You can also set the cloud role name by using the environment variable `APPLICATIONINSIGHTS_ROLE_NAME`.
333333
334-
- With Application Insights Java SDK 2.5.0 and later, you can specify the `cloud_RoleName`
335-
by adding `<RoleName>` to your ApplicationInsights.xml file:
334+
- With Application Insights Java SDK 2.5.0 and later, you can specify `cloud_RoleName`
335+
by adding `<RoleName>` to your *ApplicationInsights.xml* file:
336336
337337
:::image type="content" source="media/migrate-from-instrumentation-keys-to-connection-strings/migrate-from-instrumentation-keys-to-connection-strings.png" alt-text="Screenshot that shows Application Insights overview and connection string." lightbox="media/migrate-from-instrumentation-keys-to-connection-strings/migrate-from-instrumentation-keys-to-connection-strings.png":::
338338
@@ -345,7 +345,7 @@ You can also set the cloud role name by using the environment variable `APPLICAT
345345
</ApplicationInsights>
346346
```
347347
348-
- If you use Spring Boot with the Application Insights Spring Boot Starter, set your custom name for the application in the application.properties file:
348+
- If you use Spring Boot with the Application Insights Spring Boot Starter, set your custom name for the application in the *application.properties* file:
349349
350350
`spring.application.name=<name-of-app>`
351351

0 commit comments

Comments
 (0)