MCPcopy
hub / github.com/redis/go-redis / WithTracerProvider

Function WithTracerProvider

extra/redisotel/config.go:128–132  ·  view source on GitHub ↗

WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.

(provider trace.TracerProvider)

Source from the content-addressed store, hash-verified

126// WithTracerProvider specifies a tracer provider to use for creating a tracer.
127// If none is specified, the global provider is used.
128func WithTracerProvider(provider trace.TracerProvider) TracingOption {
129 return tracingOption(func(conf *config) {
130 conf.tp = provider
131 })
132}
133
134// WithDBStatement tells the tracing hook to log raw redis commands.
135func WithDBStatement(on bool) TracingOption {

Calls 1

tracingOptionFuncType · 0.85