Documentation ¶
Index ¶
- type Option
- type TracingHook
- func (th *TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
- func (th *TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
- func (th *TracingHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
- func (th *TracingHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option specifies instrumentation configuration options.
func WithAttributes ¶
WithAttributes specifies additional attributes to be added to the span.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.
type TracingHook ¶
type TracingHook struct {
// contains filtered or unexported fields
}
func NewTracingHook ¶
func NewTracingHook(opts ...Option) *TracingHook
func (*TracingHook) AfterProcess ¶
func (th *TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
func (*TracingHook) AfterProcessPipeline ¶
func (th *TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
func (*TracingHook) BeforeProcess ¶
func (*TracingHook) BeforeProcessPipeline ¶
Click to show internal directories.
Click to hide internal directories.