Tracing: Allow otel service name and attributes to be overridden from env (#85937)

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
This commit is contained in:
Marcus Efraimsson
2024-04-11 15:18:46 +02:00
committed by GitHub
parent 0d42e025f0
commit 78f460c4de
2 changed files with 2 additions and 1 deletions

View File

@@ -209,6 +209,7 @@ func initTracerProvider(exp tracesdk.SpanExporter, serviceName string, serviceVe
semconv.ServiceVersionKey.String(serviceVersion),
),
resource.WithAttributes(customAttribs...),
resource.WithFromEnv(),
resource.WithProcessRuntimeDescription(),
resource.WithTelemetrySDK(),
)