datadog

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package datadog implements a surfacer to export metrics to Datadog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DDSurfacer

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

DDSurfacer implements a datadog surfacer for datadog metrics.

func New

New creates a new instance of a datadog surfacer, based on the config passed in. It then hands off to a goroutine to surface metrics to datadog across a buffered channel.

func (*DDSurfacer) Write

func (dd *DDSurfacer) Write(ctx context.Context, em *metrics.EventMetrics)

Write is a function defined to comply with the surfacer interface, and enables the datadog surfacer to receive EventMetrics over the buffered channel.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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