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-enable.md
+2-26Lines changed: 2 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -430,8 +430,6 @@ trace.set_tracer_provider(
430
430
431
431
---
432
432
433
-
For information on standard attributes for resources, see [Resource Semantic Conventions](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/README.md).
434
-
435
433
## Enable Sampling
436
434
437
435
You may want to enable sampling to reduce your data ingestion volume, which reduces your cost. Azure Monitor provides a custom *fixed-rate* sampler that populates events with a "sampling ratio", which Application Insights converts to "ItemCount". The *fixed-rate* sampler ensures accurate experiences and event counts. The sampler is designed to preserve your traces across services, and it's interoperable with older Application Insights SDKs. For more information, see [Learn More about sampling](sampling.md#brief-summary).
@@ -558,8 +556,8 @@ Autocollected requests:
558
556
* Servlets
559
557
* Spring scheduling
560
558
561
-
> [!NOTE]
562
-
> Servlet and Netty auto-instrumentation covers the majority of Java HTTP services, including Java EE, Jakarta EE, Spring Boot, Quarkus, and Micronaut.
559
+
> [!NOTE]
560
+
> Servlet and Netty auto-instrumentation covers the majority of Java HTTP services, including Java EE, Jakarta EE, Spring Boot, Quarkus, and Micronaut.
@@ -1120,9 +1118,6 @@ using (var activity = activitySource.StartActivity("ExceptionExample"))
1120
1118
1121
1119
You can use `opentelemetry-api` to update the status of a span and record exceptions.
1122
1120
1123
-
> [!NOTE]
1124
-
> This feature is only in 3.2.0 and later.
1125
-
1126
1121
1. Add `opentelemetry-api-1.0.0.jar` (or later) to your application:
1127
1122
1128
1123
```xml
@@ -1227,9 +1222,6 @@ The simplest way to add your own spans is by using OpenTelemetry's `@WithSpan` a
1227
1222
1228
1223
Spans populate the `requests` and `dependencies` tables in Application Insights.
1229
1224
1230
-
> [!NOTE]
1231
-
> This feature is only in 3.2.0 and later.
1232
-
1233
1225
1. Add `opentelemetry-instrumentation-annotations-1.21.0.jar` (or later) to your application:
1234
1226
1235
1227
```xml
@@ -1261,9 +1253,6 @@ so that it will end up in the Application Insights `requests` table.
1261
1253
If the preceding OpenTelemetry `@WithSpan` annotation doesn't meet your needs,
1262
1254
you can add your spans by using the OpenTelemetry API.
1263
1255
1264
-
> [!NOTE]
1265
-
> This feature is only in 3.2.0 and later.
1266
-
1267
1256
1. Add `opentelemetry-api-1.0.0.jar` (or later) to your application:
1268
1257
1269
1258
```xml
@@ -1325,9 +1314,6 @@ Coming soon.
1325
1314
1326
1315
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.
1327
1316
1328
-
> [!NOTE]
1329
-
> This feature is only in 3.2.0 and later.
1330
-
1331
1317
1. Add `opentelemetry-api-1.0.0.jar` (or later) to your application:
1332
1318
1333
1319
```xml
@@ -1509,9 +1495,6 @@ You can use `opentelemetry-api` to add attributes to spans.
1509
1495
1510
1496
Adding one or more span attributes populates the `customDimensions` field in the `requests`, `dependencies`, `traces`, or `exceptions` table.
1511
1497
1512
-
> [!NOTE]
1513
-
> This feature is only in 3.2.0 and later.
1514
-
1515
1498
1. Add `opentelemetry-api-1.0.0.jar` (or later) to your application:
1516
1499
1517
1500
```xml
@@ -1660,10 +1643,6 @@ Coming soon.
1660
1643
1661
1644
Populate the `user ID` field in the `requests`, `dependencies`, or `exceptions` table.
1662
1645
1663
-
1664
-
> [!NOTE]
1665
-
> This feature is only in 3.2.0 and later.
1666
-
1667
1646
1. Add `opentelemetry-api-1.0.0.jar` (or later) to your application:
0 commit comments