Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentMetrics ¶
func InstrumentMetrics(rdb redis.UniversalClient, opts ...MetricsOption) error
InstrumentMetrics starts reporting OpenTelemetry Metrics.
func InstrumentTracing ¶
func InstrumentTracing(rdb redis.UniversalClient, opts ...TracingOption) error
Types ¶
type MetricsOption ¶
type MetricsOption interface {
// contains filtered or unexported methods
}
func WithMeterProvider ¶
func WithMeterProvider(mp metric.MeterProvider) MetricsOption
WithMeterProvider configures a metric.Meter used to create instruments.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAttributes ¶
WithAttributes specifies additional attributes to be added to the span.
func WithDBSystem ¶
type TracingOption ¶
type TracingOption interface {
// contains filtered or unexported methods
}
func WithDBStatement ¶
func WithDBStatement(on bool) TracingOption
WithDBStatement tells the tracing hook not to log raw redis commands.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) TracingOption
WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.
Click to show internal directories.
Click to hide internal directories.