Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit a64264d

Browse files
Merge pull request #2643 from splunk/urbiz-OD6370-azure-web-fix
[OD6370]: Azure Config Fix
2 parents e50cefa + 7ab9bfe commit a64264d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ 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")
104103
// See https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Resources.Azure
105104
// for other types of Azure detectors
106-
.AddAzureAppServiceDetector())
105+
.AddAzureAppServiceDetector()
106+
.AddService(serviceName: serviceName, serviceVersion: "1.0.0"))
107107
.WithTracing(t => t
108108
// Use Add[instrumentation-name]Instrumentation to instrument missing services
109109
// Use Nuget to find different instrumentation libraries

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ 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")
105104
// See https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Resources.Azure
106105
// for other types of Azure detectors
107-
.AddAzureAppServiceDetector())
106+
.AddAzureAppServiceDetector()
107+
.AddService(serviceName: serviceName, serviceVersion: "1.0.0"))
108108
.WithTracing(t => t
109109
// Use Add[instrumentation-name]Instrumentation to instrument missing services
110110
// Use Nuget to find different instrumentation libraries

0 commit comments

Comments
 (0)