ddHelpers

package
v0.0.0-...-d42119a Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceNamespace = "grants_ingest"

Variables

This section is empty.

Functions

func NewMetricSender

func NewMetricSender(namespace string, defaultTags ...string) func(metric string, value float64, tags ...string)

NewMetricSender creates a function that wraps calls to ddlambda.Metric in order to provide consistent namespacing and tagging of metrics emitted by a Lambda function.

The following example usages are functionally equivalent:

NewMetricSender("my_lambda_function", "sticky:tag")("my_metric", 1234, "another:tag")
ddlambda.SendMetric(fmt.Sprintf("%s.my_lambda_function.some_metric", RootNamespace), 1234, "sticky:tag", "another:tag")

Types

This section is empty.

Jump to

Keyboard shortcuts

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