Skip to content

Commit 90906f1

Browse files
authored
Read OTEL env vars for resource attributes (#4932)
1 parent c17b575 commit 90906f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/jtracer/jtracer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func initOTEL(ctx context.Context, svc string) (*sdktrace.TracerProvider, error)
8080
resource.WithTelemetrySDK(),
8181
resource.WithHost(),
8282
resource.WithOSType(),
83+
resource.WithFromEnv(),
8384
)
8485
if err != nil {
8586
return nil, err

0 commit comments

Comments
 (0)