datadog

package module
v2.0.0-...-41971ff Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCounter

func NewCounter(name string, opts ...Option) metrics.Counter

NewCounter new a DataDog counter and returns Counter.

func NewGauge

func NewGauge(name string, opts ...Option) metrics.Gauge

NewGauge new a DataDog gauge and returns Gauge.

func NewTiming

func NewTiming(name string, opts ...Option) metrics.Observer

NewTiming new a DataDog timer and returns Observer.

Types

type Option

type Option func(*options)

Option is datadog option.

func WithClient

func WithClient(c *statsd.Client) Option

WithClient with client option.

func WithLabels

func WithLabels(lvs ...string) Option

WithLabels with labels option.

func WithSampleRate

func WithSampleRate(rate float64) Option

WithSampleRate with sample rate option.

Jump to

Keyboard shortcuts

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