datadog

package
v1.0.0-dev.185 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientRegister

func ClientRegister(ctx context.Context, client *redis.Client) error

ClientRegister registers a new datadog client to redis client.

func ClusterRegister

func ClusterRegister(ctx context.Context, client *redis.ClusterClient) error

ClusterRegister registers a new datadog client on redis cluster client.

func ConfigAdd

func ConfigAdd(path string)

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

func NewClientWithOptions(options *Options) *Client

NewClientWithOptions returns a new datadog client with options.

func (*Client) Register

func (d *Client) Register(ctx context.Context, client *redis.Client) error

Register registers this datadog client to redis client.

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

func NewClusterWithOptions(options *Options) *Cluster

NewClusterWithOptions returns datadog client with options.

func (*Cluster) Register

func (d *Cluster) Register(ctx context.Context, client *redis.ClusterClient) error

Register registers this datadog client on redis cluster client.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL