Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientRegister ¶
ClientRegister registers a new datadog client to redis client.
func ClusterRegister ¶
ClusterRegister registers a new datadog client on redis cluster client.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a datadog client for redis.
func NewClient ¶
func NewClient(traceOptions ...redistrace.ClientOption) (*Client, error)
NewClient returns a new datadog client with default options.
func NewClientWithConfigPath ¶
func NewClientWithConfigPath(path string, traceOptions ...redistrace.ClientOption) (*Client, error)
NewClientWithConfigPath returns a new datadog client with options from config path.
func NewClientWithOptions ¶
NewClientWithOptions returns a new datadog client with options.
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster represents a datadog client for redis cluster client.
func NewCluster ¶
func NewCluster(traceOptions ...redistrace.ClientOption) (*Cluster, error)
NewCluster returns datadog client with default options.
func NewClusterWithConfigPath ¶
func NewClusterWithConfigPath(path string, traceOptions ...redistrace.ClientOption) (*Cluster, error)
NewClusterWithConfigPath returns datadog client with options from config path.
func NewClusterWithOptions ¶
NewClusterWithOptions returns datadog client with options.
type Options ¶
type Options struct {
Enabled bool
TraceOptions []redistrace.ClientOption
}
Options represents a datadog client for redis options.
func NewOptions ¶
func NewOptions(traceOptions ...redistrace.ClientOption) (*Options, error)
NewOptions returns options from config or environment vars.
func NewOptionsWithPath ¶
func NewOptionsWithPath(path string, traceOptions ...redistrace.ClientOption) (opts *Options, err error)
NewOptionsWithPath unmarshals options based a given key path.