ddog

package
v0.0.0-...-6503e2e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(name string, value int64, tags []string, rate float64)

Count send count data to datadog

func Gauge

func Gauge(name string, value float64, tags []string, rate float64)

Gauge send gauge data to datadog

func Histogram

func Histogram(name string, requestTime float64, tags []string, rate float64)

Histogram send histogram data to datadog

func InitDatadog

func InitDatadog(c Config) error

InitDatadog init datadog client

Types

type Config

type Config struct {
	Endpoint    string
	ServiceName string
	DefaultTags []string
}

Config config used for datadog package

type Datadog

type Datadog struct {
	Client *statsd.Client
}

Datadog is datadog client wrapper

Jump to

Keyboard shortcuts

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