1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-26 03:52:03 +02:00

Use semconv.SchemaURL in STDOUT exporter example (#2134)

This commit is contained in:
Tyler Yahn 2021-07-26 11:35:03 -07:00 committed by GitHub
parent ef03dbc9f9
commit 2501e0fd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ var (
tracer = otel.GetTracerProvider().Tracer(
instrumentationName,
trace.WithInstrumentationVersion(instrumentationVersion),
trace.WithSchemaURL("https://opentelemetry.io/schemas/1.2.0"),
trace.WithSchemaURL(semconv.SchemaURL),
)
)