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 ClientDatadog ¶
type ClientDatadog struct {
// contains filtered or unexported fields
}
ClientDatadog represents a datadog client for redis.
func NewClientDatadog ¶
func NewClientDatadog(traceOptions ...redistrace.ClientOption) (*ClientDatadog, error)
NewClientDatadog returns a new datadog client with default options.
func NewClientDatadogWithConfigPath ¶
func NewClientDatadogWithConfigPath(path string, traceOptions ...redistrace.ClientOption) (*ClientDatadog, error)
NewClientDatadogWithConfigPath returns a new datadog client with options from config path.
func NewClientDatadogWithOptions ¶
func NewClientDatadogWithOptions(options *Options) *ClientDatadog
NewClientDatadogWithOptions returns a new datadog client with options.
type ClusterDatadog ¶
type ClusterDatadog struct {
// contains filtered or unexported fields
}
ClusterDatadog represents a datadog client for redis cluster client.
func NewClusterDatadog ¶
func NewClusterDatadog(traceOptions ...redistrace.ClientOption) (*ClusterDatadog, error)
NewClusterDatadog returns datadog client with default options.
func NewClusterDatadogWithConfigPath ¶
func NewClusterDatadogWithConfigPath(path string, traceOptions ...redistrace.ClientOption) (*ClusterDatadog, error)
NewClusterDatadogWithConfigPath returns datadog client with options from config path.
func NewClusterDatadogWithOptions ¶
func NewClusterDatadogWithOptions(options *Options) *ClusterDatadog
NewClusterDatadogWithOptions 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.