Skip to content

Commit 34293e3

Browse files
committed
feat(otel): enable trace options
1 parent 276241e commit 34293e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/instrumentation/otel/trace/trace.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func NewTracerProvider(ctx context.Context, options ...Option) (*sdktrace.Tracer
2525
o.ApplyOptions(options...)
2626

2727
var tracerProviderOptions []sdktrace.TracerProviderOption
28+
tracerProviderOptions = append(tracerProviderOptions, o.TracerProviderOptions...)
2829
{
2930
res, err := sdkresource.New(ctx,
3031
sdkresource.WithFromEnv(), // Discover and provide attributes from OTEL_RESOURCE_ATTRIBUTES and OTEL_SERVICE_NAME environment variables.

0 commit comments

Comments
 (0)