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()
Output:
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.
Click to show internal directories.
Click to hide internal directories.