Skip to content

Commit a69a4d1

Browse files
authored
Merge pull request #178919 from vishweshbankwar/patch-1
Clarifying functions limitation and minor fixes
2 parents 8076592 + 39f8e6c commit a69a4d1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/azure-monitor/app/opentelemetry-enable.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Please consider carefully whether this preview is right for you. It **enables di
3535
- Ability to override [Operation Name](correlation.md#data-model-for-telemetry-correlation)
3636
- Ability to manually set User ID or Authenticated User ID
3737
- Propagating Operation Name to Dependency Telemetry
38-
- Distributed Tracing context propagation (instrumentation libraries) through Azure Functions Worker
38+
- [Instrumentation libraries](#instrumentation-libraries) support on Azure Functions
3939

4040
Those who require a full-feature experience should use the existing Application Insights [ASP.NET](asp-net.md) or [ASP.NET Core](asp-net-core.md) SDK until the OpenTelemetry-based offering matures.
4141

@@ -76,7 +76,7 @@ Please consider carefully whether this preview is right for you. It **enables di
7676
- Ability to override [Operation Name](correlation.md#data-model-for-telemetry-correlation)
7777
- Ability to manually set User ID or Authenticated User ID
7878
- Propagating Operation Name to Dependency Telemetry
79-
- Distributed Tracing context propagation (instrumentation libraries) through Azure Functions Worker
79+
- [Instrumentation libraries](#instrumentation-libraries) support on Azure Functions
8080

8181
Those who require a full-feature experience should use the existing [Application Insights Python-OpenCensus SDK](opencensus-python.md) until the OpenTelemetry-based offering matures.
8282

@@ -170,7 +170,7 @@ pip install azure-monitor-opentelemetry-exporter
170170

171171
##### [.NET](#tab/net)
172172

173-
The following code demonstrates enabling OpenTelemetry in a C# console application by setting up OpenTelemetry TracerProvider. This code must be in the application startup. For ASP.NET Core, it is done typically in the `ConfigureServices` method of application `Startup` class. For ASP.NET applications, it is done typically in `Global.aspx.cs`.
173+
The following code demonstrates enabling OpenTelemetry in a C# console application by setting up OpenTelemetry TracerProvider. This code must be in the application startup. For ASP.NET Core, it is done typically in the `ConfigureServices` method of application `Startup` class. For ASP.NET applications, it is done typically in `Global.asax.cs`.
174174

175175
```csharp
176176
using System.Diagnostics;
@@ -465,7 +465,7 @@ Span attributes can be added using either of the following two ways.
465465
1. Using options provided by [instrumentation libraries](#instrumentation-libraries).
466466
2. Adding a custom span processor.
467467

468-
These attributes may include adding a custom business property to your telemetry. You may also use attributes to set optional fields in the Application Insights Schema such as User ID or Client IP.
468+
These attributes may include adding a custom property to your telemetry. You may also use attributes to set optional fields in the Application Insights Schema such as Client IP.
469469

470470
> [!TIP]
471471
> The advantage of using "options provided by instrumentation libraries" (when available) is that the entire context is available, meaning users can select to add or filter additional attributes. For example, the enrich option the HttpClient instrumentation library includes giving users access to the httpRequestMessage itself, to select anything from it and store it as an attribute.
@@ -594,6 +594,7 @@ You can populate the _client_IP_ field for requests by setting `http.client_ip`
594594
Use the add [custom property example](#add-custom-property), except change out the following lines of code in `ActivityEnrichingProcessor.cs`:
595595

596596
```C#
597+
// only applicable in case of activity.Kind == Server
597598
activity.SetTag("http.client_ip", "<IP Address>");
598599
```
599600

0 commit comments

Comments
 (0)