datadog

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

Package datadog re-exports appmetrics/emitter/datadog to preserve compatibility.

Deprecated: Use the appmetrics/emitter/datadog package instead.

Index

Constants

View Source
const (
	DefaultAddress  = datadog.DefaultAddress
	DefaultInterval = datadog.DefaultInterval
)

Variables

This section is empty.

Functions

func SetTimerUnit deprecated added in v0.5.0

func SetTimerUnit(unit time.Duration)

SetTimerUnit sets the units used when exporting metrics.Timer metrics. By default, times are reported in nanoseconds. You must call this function before starting any Emitter instances.

Deprecated: Use the appmetrics/emitter/datadog package instead.

func StartEmitter deprecated

func StartEmitter(s *baseapp.Server, c Config) error

StartEmitter starts a goroutine that emits metrics from the server's registry to the configured DogStatsd endpoint.

Deprecated: Use the appmetrics/emitter/datadog package instead.

Types

type Config

type Config = datadog.Config

type Emitter

type Emitter = datadog.Emitter

func NewEmitter deprecated

func NewEmitter(client *statsd.Client, registry metrics.Registry) *Emitter

NewEmitter creates a new Emitter that sends metrics from registry using client.

Deprecated: Use the appmetrics/emitter/datadog package instead.

Jump to

Keyboard shortcuts

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