datadog

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func Register

func Register(ctx context.Context) (*chi.Config, error)

Register registers a default datadog plugin to a new chi config.

Types

type Datadog

type Datadog struct {
	// contains filtered or unexported fields
}

Datadog struct that represents a datadog plugin for chi

func NewDatadog

func NewDatadog(traceOptions ...chitrace.Option) *Datadog

NewDatadog returns a new datadog plugin with default options.

func NewDatadogWithConfigPath

func NewDatadogWithConfigPath(path string, traceOptions ...chitrace.Option) (*Datadog, error)

NewDatadogWithConfigPath returns a new datadog plugin with options from config path.

func NewDatadogWithOptions

func NewDatadogWithOptions(options *Options) *Datadog

NewDatadogWithOptions returns a new datadog plugin with options.

func (*Datadog) Register

func (d *Datadog) Register(ctx context.Context) (*chi.Config, error)

Register registers the datadog plugin to a new chi config.

type Options

type Options struct {
	Enabled      bool
	TraceOptions []chitrace.Option
}

Options struct which represents a datadog plugin for chi options.

func NewOptions

func NewOptions(traceOptions ...chitrace.Option) (*Options, error)

NewOptions returns options from config file or environment vars.

func NewOptionsWithPath

func NewOptionsWithPath(path string, traceOptions ...chitrace.Option) (opts *Options, err error)

NewOptionsWithPath returns options from config path.

Jump to

Keyboard shortcuts

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