Skip to content

Commit c77fae3

Browse files
Fix
1 parent bd8b1ab commit c77fae3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

gdi/get-data-in/application/otel-dotnet/instrumentation/azure-webapps.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@ After adding the dependencies, create an OpenTelemetry helper for your applicati
100100
101101
builder.Services.AddOpenTelemetry()
102102
.ConfigureResource(cfg => cfg
103-
.AddService(serviceName: serviceName, serviceVersion: "1.0.0")
103+
.AddAzureAppServiceDetector()
104+
.AddService(serviceName: serviceName, serviceVersion: "1.0.0"))
104105
// See https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Resources.Azure
105-
// for other types of Azure detectors
106-
.AddAzureAppServiceDetector())
107106
.WithTracing(t => t
108107
// Use Add[instrumentation-name]Instrumentation to instrument missing services
109108
// Use Nuget to find different instrumentation libraries

gdi/get-data-in/application/otel-dotnet/instrumentation/azure-webjobs.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ After adding the dependencies, create an OpenTelemetry helper for your applicati
101101
102102
builder.Services.AddOpenTelemetry()
103103
.ConfigureResource(cfg => cfg
104-
.AddService(serviceName: serviceName, serviceVersion: "1.0.0")
104+
.AddAzureAppServiceDetector()
105+
.AddService(serviceName: serviceName, serviceVersion: "1.0.0"))
105106
// See https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Resources.Azure
106-
// for other types of Azure detectors
107-
.AddAzureAppServiceDetector())
108107
.WithTracing(t => t
109108
// Use Add[instrumentation-name]Instrumentation to instrument missing services
110109
// Use Nuget to find different instrumentation libraries

0 commit comments

Comments
 (0)