Fix the Zipkin exporter registration (#2135)

There was a missing line to set the service name similar to other places
This commit is contained in:
Vladimir Kloz 2021-07-14 22:21:34 +02:00 committed by GitHub
parent 7e40c7b08e
commit 56357fcd04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ namespace Examples.AspNetCore
break;
case "zipkin":
services.AddOpenTelemetryTracing((builder) => builder
.SetResourceBuilder(ResourceBuilder.CreateDefault().AddService(this.Configuration.GetValue<string>("Zipkin:ServiceName")))
.AddAspNetCoreInstrumentation()
.AddHttpClientInstrumentation()
.AddZipkinExporter());