You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/opentelemetry-add-modify.md
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ Telemetry emitted by these Azure SDKs is automatically collected by default:
139
139
[//]: #"console.log(str)"
140
140
141
141
142
-
#### [Java Native](#tab/java-native)
142
+
#### [Java native](#tab/java-native)
143
143
144
144
Requests for Spring Boot native applications
145
145
* Spring Web
@@ -300,7 +300,7 @@ var metricsProvider = Sdk.CreateMeterProviderBuilder()
300
300
### [Java](#tab/java)
301
301
You can't extend the Java Distro with community instrumentation libraries. To request that we include another instrumentation library, open an issue on our GitHub page. You can find a link to our GitHub page in [Next Steps](#next-steps).
302
302
303
-
### [Java Native](#tab/java-native)
303
+
### [Java native](#tab/java-native)
304
304
305
305
You can't use commmunity instrumentation libraries with GraalVM Java native applications.
306
306
@@ -546,7 +546,7 @@ public class Program {
546
546
}
547
547
```
548
548
549
-
#### [Java Native](#tab/java-native)
549
+
#### [Java native](#tab/java-native)
550
550
551
551
1. Inject `OpenTelemetry`
552
552
@@ -743,7 +743,7 @@ public class Program {
743
743
}
744
744
}
745
745
```
746
-
#### [Java Native](#tab/java-native)
746
+
#### [Java native](#tab/java-native)
747
747
748
748
1. Inject `OpenTelemetry`
749
749
@@ -959,7 +959,7 @@ public class Program {
959
959
}
960
960
}
961
961
```
962
-
#### [Java Native](#tab/java-native)
962
+
#### [Java native](#tab/java-native)
963
963
964
964
1. Inject `OpenTelemetry`
965
965
@@ -1182,7 +1182,7 @@ You can use `opentelemetry-api` to update the status of a span and record except
1182
1182
span.recordException(e);
1183
1183
```
1184
1184
1185
-
#### [Java Native](#tab/java-native)
1185
+
#### [Java native](#tab/java-native)
1186
1186
1187
1187
Set status to `error` and record an exception in your code:
1188
1188
@@ -1412,7 +1412,7 @@ you can add your spans by using the OpenTelemetry API.
1412
1412
}
1413
1413
```
1414
1414
1415
-
#### [Java Native](#tab/java-native)
1415
+
#### [Java native](#tab/java-native)
1416
1416
1417
1417
1. Inject `OpenTelemetry`
1418
1418
@@ -1560,7 +1560,7 @@ You can use `opentelemetry-api` to create span events, which populate the `trace
1560
1560
Span.current().addEvent("eventName");
1561
1561
```
1562
1562
1563
-
#### [Java Native](#tab/java-native)
1563
+
#### [Java native](#tab/java-native)
1564
1564
1565
1565
You can use OpenTelemetry API to create span events, which populate the `traces` table in Application Insights. The string passed in to `addEvent()` is saved to the `message` field within the trace.
-Toenableusageexperiences, see [Enableweborbrowserusermonitoring](javascript.md).
2621
2621
-Seethe [releasenotes](https://github.com/microsoft/ApplicationInsights-Java/releases) on GitHub.
2622
2622
2623
-
### [Java Native](#tab/java-native)
2623
+
### [Java native](#tab/java-native)
2624
+
2624
2625
-FordetailsonaddingandmodifyingAzureMonitorOpenTelemetry, see [AddandmodifyAzureMonitorOpenTelemetry](opentelemetry-add-modify.md).
2625
2626
-Toreviewthesourcecode, see [AzureMonitorOpenTelemetryDistroinSpringBootnativeimageJavaapplication](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/spring-cloud-azure-starter-monitor)
2626
2627
and [QuarkusOpenTelemetryExporterforAzure](https://github.com/quarkiverse/quarkus-opentelemetry-exporter/tree/main/quarkus-opentelemetry-exporter-azure).
@@ -366,17 +366,17 @@ var tracerProvider = Sdk.CreateTracerProviderBuilder()
366
366
});
367
367
```
368
368
369
-
#### [Java](#tab/java)
369
+
### [Java](#tab/java)
370
370
371
371
Startingfrom3.4.0, rate-limitedsamplingisavailableandisnowthedefault. Formoreinformationaboutsampling, see [Javasampling]( java-standalone-config.md#sampling).
372
372
373
-
#### [Java Native](#tab/java-native)
373
+
### [Java native](#tab/java-native)
374
374
375
375
ForSpringBootnativeapplications, the [samplingconfigurationsoftheOpenTelemetryJavaSDKareapplicable](https://opentelemetry.io/docs/languages/java/configuration/#sampler).
>Seethe [SupplementalTermsofUseforMicrosoftAzurePreviews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
Thisfeatureisn't available in the Azure Monitor .NET Exporter.
438
438
439
-
#### [Java](#tab/java)
439
+
### [Java](#tab/java)
440
440
441
441
TheLiveMetricsexperienceisenabledbydefault.
442
442
443
443
FormoreinformationonJavaconfiguration, see [Configurationoptions: AzureMonitorApplicationInsightsforJava](java-standalone-config.md#configuration-options-azure-monitor-application-insights-for-java).
>Seethe [SupplementalTermsofUseforMicrosoftAzurePreviews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
@@ -479,7 +479,7 @@ Configuration sample
479
479
480
480
-->
481
481
482
-
#### [Python](#tab/python)
482
+
### [Python](#tab/python)
483
483
484
484
> [!IMPORTANT]
485
485
>Seethe [SupplementalTermsofUseforMicrosoftAzurePreviews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
1. Installthe [OpenTelemetry.Exporter.OpenTelemetryProtocol](https://www.nuget.org/packages/OpenTelemetry.Exporter.OpenTelemetryProtocol/) package in your project.
834
834
@@ -858,7 +858,7 @@ You might want to enable the OpenTelemetry Protocol (OTLP) Exporter alongside th
858
858
app.Run();
859
859
```
860
860
861
-
#### [.NET](#tab/net)
861
+
### [.NET](#tab/net)
862
862
863
863
1. Installthe [OpenTelemetry.Exporter.OpenTelemetryProtocol](https://www.nuget.org/packages/OpenTelemetry.Exporter.OpenTelemetryProtocol/) package in your project.
864
864
@@ -882,15 +882,15 @@ You might want to enable the OpenTelemetry Protocol (OTLP) Exporter alongside th
Youcan't enable the OpenTelemetry Protocol (OTLP) Exporter alongside the Azure Monitor Exporter to send your telemetry to two locations.
892
892
893
-
#### [Node.js](#tab/nodejs)
893
+
### [Node.js](#tab/nodejs)
894
894
895
895
1. Installthe [OpenTelemetryCollectorTraceExporter](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-http) and other OpenTelemetry packages in your project.
896
896
@@ -901,7 +901,7 @@ You can't enable the OpenTelemetry Protocol (OTLP) Exporter alongside the Azure
// Import the useAzureMonitor function, the AzureMonitorOpenTelemetryOptions class, the trace module, the ProxyTracerProvider class, the BatchSpanProcessor class, the NodeTracerProvider class, and the OTLPTraceExporter class from the @azure/monitor-opentelemetry, @opentelemetry/api, @opentelemetry/sdk-trace-base, @opentelemetry/sdk-trace-node, and @opentelemetry/exporter-trace-otlp-http packages, respectively.
@@ -920,7 +920,7 @@ You can't enable the OpenTelemetry Protocol (OTLP) Exporter alongside the Azure
0 commit comments