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.
Click to show internal directories.
Click to hide internal directories.