Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithClient ¶
WithClient creates a new rueidis.Client with OpenTelemetry tracing enabled.
Example (OpenTelemetry) ¶
client, err := rueidis.NewClient(rueidis.ClientOption{InitAddress: []string{"127.0.0.1:6379"}})
if err != nil {
panic(err)
}
client = WithClient(client)
defer client.Close()
Types ¶
type Option ¶
type Option func(o *otelclient)
Option is the Functional Options interface
func MetricAttrs ¶
MetricAttrs set additional attributes to append to each metric.
func TraceAttrs ¶
TraceAttrs set additional attributes to append to each trace.
func WithMeterProvider ¶ added in v1.0.6
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider sets the MeterProvider for the otelclient.
func WithTracerProvider ¶ added in v1.0.6
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider sets the TracerProvider for the otelclient.
Click to show internal directories.
Click to hide internal directories.