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
+23-22Lines changed: 23 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ Follow the steps in this section to instrument your application with OpenTelemet
38
38
- An Azure subscription: [Create an Azure subscription for free](https://azure.microsoft.com/free/)
39
39
- An Application Insights resource: [Create an Application Insights resource](create-workspace-resource.md#create-a-workspace-based-resource)
40
40
41
+
<!---NOTE TO CONTRIBUTORS: PLEASE DO NOT SEPARATE OUT JAVASCRIPT AND TYPESCRIPT INTO DIFFERENT TABS.--->
42
+
41
43
### [.NET](#tab/net)
42
44
43
45
- Application using an officially supported version of [.NET Core](https://dotnet.microsoft.com/download/dotnet) or [.NET Framework](https://dotnet.microsoft.com/download/dotnet-framework) that's at least .NET Framework 4.6.2
@@ -335,7 +337,7 @@ As part of using Application Insights instrumentation, we collect and send diagn
335
337
336
338
## Set the Cloud Role Name and the Cloud Role Instance
337
339
338
-
You might want to update the [Cloud Role Name](app-map.md#understand-the-cloud-role-name-within-the-context-of-an-application-map) and the Cloud Role Instance from the default values to something that makes sense to your team. They'll appear on the Application Map as the name underneath a node. Cloud Role Name uses `service.namespace` and `service.name` attributes, although it falls back to `service.name` if `service.namespace` isn't set. Cloud Role Instance uses the `service.instance.id` attribute value.
340
+
You might want to update the [Cloud Role Name](app-map.md#understand-the-cloud-role-name-within-the-context-of-an-application-map) and the Cloud Role Instance from the default values to something that makes sense to your team. They'll appear on the Application Map as the name underneath a node.
339
341
340
342
### [.NET](#tab/net)
341
343
@@ -734,7 +736,7 @@ Depending on your language and signal type, there are different ways to collect
734
736
735
737
- OpenTelemetry API
736
738
- Language-specific logging/metrics libraries
737
-
- Application Insights API
739
+
- Application Insights Classic API
738
740
739
741
The following table represents the currently supported custom telemetry types:
740
742
@@ -762,7 +764,7 @@ The following table represents the currently supported custom telemetry types:
762
764
| AI Classic API ||||||||
763
765
764
766
> [!NOTE]
765
-
> Application Insights Java 3.x listens for telemetry that's sent to the Application Insights Java 2.x SDK. Similarly, Application Insights Node.js 3.x collects events created with the Application Insights API. This makes upgrading easier and fills a gap in our custom telemetry support until all custom telemetry types are supported via the OpenTelemetry API.
767
+
> Application Insights Java 3.x listens for telemetry that's sent to the Application Insights Classic API. Similarly, Application Insights Node.js 3.x collects events created with the Application Insights Classic API. This makes upgrading easier and fills a gap in our custom telemetry support until all custom telemetry types are supported via the OpenTelemetry API.
766
768
767
769
### Add Custom Metrics
768
770
@@ -791,7 +793,7 @@ The [OpenTelemetry Specification](https://github.com/open-telemetry/opentelemetr
791
793
describes the instruments and provides examples of when you might use each one.
792
794
793
795
> [!TIP]
794
-
> The histogram is the most versatile and most closely equivalent to the prior Application Insights Track Metric API. Azure Monitor currently flattens the histogram instrument into our five supported aggregation types, and support for percentiles is underway. Although less versatile, other OpenTelemetry instruments have a lesser impact on your application's performance.
796
+
> The histogram is the most versatile and most closely equivalent to the Application Insights Track Metric Classic API. Azure Monitor currently flattens the histogram instrument into our five supported aggregation types, and support for percentiles is underway. Although less versatile, other OpenTelemetry instruments have a lesser impact on your application's performance.
795
797
796
798
#### Histogram Example
797
799
@@ -1092,9 +1094,9 @@ input()
1092
1094
1093
1095
### Add Custom Exceptions
1094
1096
1095
-
Select instrumentation libraries automatically support exceptions to Application Insights.
1097
+
Select instrumentation libraries automatically report exceptions to Application Insights.
1096
1098
However, you may want to manually report exceptions beyond what instrumentation libraries report.
1097
-
For instance, exceptions caught by your code aren't* ordinarily reported. You may wish to report them
1099
+
For instance, exceptions caught by your code aren't ordinarily reported. You may wish to report them
1098
1100
to draw attention in relevant experiences including the failures section and end-to-end transaction views.
1099
1101
1100
1102
#### [.NET](#tab/net)
@@ -1125,7 +1127,7 @@ You can use `opentelemetry-api` to update the status of a span and record except
### Send custom telemetry using the Application Insights API
1361
+
### Send custom telemetry using the Application Insights Classic API
1360
1362
1361
-
We recommend you use the OpenTelemetry APIs whenever possible, but there may be some scenarios when you have to use the Application Insights APIs.
1363
+
We recommend you use the OpenTelemetry APIs whenever possible, but there may be some scenarios when you have to use the Application Insights Classic APIs.
1362
1364
1363
1365
#### [.NET](#tab/net)
1364
1366
@@ -1503,7 +1505,7 @@ public class ActivityEnrichingProcessor : BaseProcessor<Activity>
1503
1505
1504
1506
##### [Java](#tab/java)
1505
1507
1506
-
You can use `opentelemetry-api` to add attributes to spans. These attributes can include adding a custom business dimension to your telemetry. You can also use attributes to set optional fields in the Application Insights schema, such as User ID or Client IP.
1508
+
You can use `opentelemetry-api` to add attributes to spans.
1507
1509
1508
1510
Adding one or more span attributes populates the `customDimensions` field in the `requests`, `dependencies`, `traces`, or `exceptions` table.
1509
1511
@@ -1514,7 +1516,7 @@ Adding one or more span attributes populates the `customDimensions` field in the
You can populate the _user_Id_ or _user_Authenticatedid_ field for requests by using the guidance below. User ID is an anonymous user identifier. Authenticated User ID is a known user identifier.
1650
+
You can populate the _user_Id_ or _user_AuthenticatedId_ field for requests by using the guidance below. User ID is an anonymous user identifier. Authenticated User ID is a known user identifier.
1649
1651
1650
1652
> [!IMPORTANT]
1651
1653
> Consult applicable privacy laws before you set the Authenticated User ID.
@@ -1658,7 +1660,6 @@ Coming soon.
1658
1660
1659
1661
Populate the `user ID` field in the `requests`, `dependencies`, or `exceptions` table.
1660
1662
1661
-
Consult applicable privacy laws before you set the Authenticated User ID.
1662
1663
1663
1664
> [!NOTE]
1664
1665
> This feature is only in 3.2.0 and later.
@@ -1667,7 +1668,7 @@ Consult applicable privacy laws before you set the Authenticated User ID.
0 commit comments