1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-15 01:04:25 +02:00

Use semconv creation functions (#3683)

This commit is contained in:
Tyler Yahn
2023-02-07 13:42:47 -08:00
committed by GitHub
parent a4f646d054
commit ddf393886c
26 changed files with 84 additions and 84 deletions

View File

@ -55,7 +55,7 @@ func initTracer(url string) (func(context.Context) error, error) {
sdktrace.WithSpanProcessor(batcher),
sdktrace.WithResource(resource.NewWithAttributes(
semconv.SchemaURL,
semconv.ServiceNameKey.String("zipkin-test"),
semconv.ServiceName("zipkin-test"),
)),
)
otel.SetTracerProvider(tp)