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

Commit 959d8a5

Browse files
pauljwilRassK
andauthored
Update gdi/get-data-in/serverless/azure/instrument-azure-functions-dotnet.rst
Co-authored-by: Rasmus Kuusmann <[email protected]>
1 parent 10e0459 commit 959d8a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gdi/get-data-in/serverless/azure/instrument-azure-functions-dotnet.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ After adding the dependencies, initialize OpenTelemetry in your function.
274274
.SetResourceBuilder(
275275
ResourceBuilder.CreateDefault()
276276
.AddService(serviceName: serviceName, serviceVersion: "1.0.0")
277+
.AddAzureAppServiceDetector()
277278
.AddAttributes(new Dictionary<string, object>() {
278279
{ "faas.instance", Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID") }
279280
}))

0 commit comments

Comments
 (0)