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
This section provides code samples that demonstrate how to enable OpenTelemetry.
170
+
This section provides guidance that shows how to enable OpenTelemetry.
171
171
172
172
#### Add OpenTelemetry instrumentation code
173
173
@@ -465,7 +465,7 @@ This section explains how to modify telemetry.
465
465
466
466
### Add span attributes
467
467
468
-
To span attributes, use either of the following two ways:
468
+
To add span attributes, use either of the following two ways:
469
469
470
470
* Use options provided by [instrumentation libraries](#instrumentation-libraries).
471
471
* Add a custom span processor.
@@ -477,7 +477,7 @@ These attributes might include adding a custom property to your telemetry. You m
477
477
478
478
#### Add a custom property
479
479
480
-
Any [attributes](#add-span-attributes) you add to activity or span are exported as custom properties. They populate the _customDimensions_ field in the requests or the dependencies tables in Application Insights.
480
+
Any [attributes](#add-span-attributes) you add to spans are exported as custom properties. They populate the _customDimensions_ field in the requests or the dependencies tables in Application Insights.
481
481
482
482
##### [.NET](#tab/net)
483
483
@@ -591,7 +591,7 @@ class SpanEnrichingProcessor(SpanProcessor):
591
591
592
592
#### Set the user IP
593
593
594
-
You can populate the _client_IP_ field for requests by setting the `http.client_ip` attribute on the activity or span. Application Insights uses the IP address to generate user location attributes and then [discards it by default](ip-collection.md#default-behavior).
594
+
You can populate the _client_IP_ field for requests by setting the `http.client_ip` attribute on the span. Application Insights uses the IP address to generate user location attributes and then [discards it by default](ip-collection.md#default-behavior).
You can populate the _user_Id_ or _user_Authenticatedid_ field for requests by setting the `xyz` or `xyz` attribute on activity or span. User ID is an anonymous user identifier. Authenticated User ID is a known user identifier.
635
+
You can populate the _user_Id_ or _user_Authenticatedid_ field for requests by setting the `xyz` or `xyz` attribute on the span. User ID is an anonymous user identifier. Authenticated User ID is a known user identifier.
636
636
637
637
> [!IMPORTANT]
638
638
> Consult applicable privacy laws before you set the Authenticated User ID.
0 commit comments