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 ¶
func New(ctx context.Context, config *configpb.SurfacerConf, opts *options.Options, l *logger.Logger) (*DDSurfacer, error)
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.
Click to show internal directories.
Click to hide internal directories.