Documentation
¶
Overview ¶
Package valkey provides tracing functions for tracing the valkey-io/valkey-go package (https://github.com/valkey-io/valkey-go).
Example ¶
To start tracing Valkey, simply create a new client using the library and continue using as you normally would.
tracer.Start() defer tracer.Stop() vk, err := valkeytrace.NewClient(valkey.ClientOption{ InitAddress: []string{"localhost:6379"}, }) if err != nil { log.Fatal(err) return } if err := vk.Do(context.Background(), vk.B().Set().Key("key").Value("value").Build()).Error(); err != nil { log.Fatal(err) return }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*config)
Option represents an option that can be used to create or wrap a client.
func WithRawCommand ¶
WithRawCommand can be used to set a tag `valkey.raw_command` in the created spans (disabled by default). Warning: please note the datadog-agent currently does not support obfuscation for this tag, so use this at your own risk.
func WithServiceName ¶
WithServiceName sets the given service name for the client.
Click to show internal directories.
Click to hide internal directories.