WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.
(provider trace.TracerProvider)
| 126 | // WithTracerProvider specifies a tracer provider to use for creating a tracer. |
| 127 | // If none is specified, the global provider is used. |
| 128 | func 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. |
| 135 | func WithDBStatement(on bool) TracingOption { |