# Functions
AddTags adds the provided tags to the provided context.
CaptureRuntimeMemStats registers runtime memory metrics collectors and spawns a goroutine which collects them every collectionFreq.
CaptureRuntimeMemStatsWithContext creates a child registry of the provided registry that tracks Go runtime memory metrics and starts a goroutine that captures them to that registry every collectionFreq.
No description provided by the author
No description provided by the author
MustNewTag returns the result of calling NewTag, but panics if NewTag returns an error.
MustNewTags returns the result of calling NewTags, but panics if NewTags returns an error.
NewRootMetricsRegistry creates a new root registry for metrics.
NewTag returns a tag that uses the provided key and value.
NewTags returns a slice of tags that use the provided key:value mapping.
NewTagWithFallbackValue returns the result of calling NewTag, and if that fails, calls MustNewTag with a fallback value.
RunEmittingRegistry periodically calls registry.Each with a provided visit function.
TagsFromContext returns the tags stored on the provided context.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
NoopRegistry is a "lightweight, high-speed implementation of Registry for when simplicity and performance matter above all else".
A Tag is metadata associated with a metric.
# Interfaces
No description provided by the author
No description provided by the author
RootRegistry is the root metric registry for a product.
# Type aliases
MetricVisitor is a callback function type that can be passed into Registry.Each to report metrics into systems which consume metrics.
No description provided by the author