Skip to content

Commit

Permalink
Read OTEL env vars for resource attributes (#4932)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurishkuro authored Nov 8, 2023
1 parent c17b575 commit 90906f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/jtracer/jtracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func initOTEL(ctx context.Context, svc string) (*sdktrace.TracerProvider, error)
resource.WithTelemetrySDK(),
resource.WithHost(),
resource.WithOSType(),
resource.WithFromEnv(),
)
if err != nil {
return nil, err
Expand Down

0 comments on commit 90906f1

Please sign in to comment.