# Packages
No description provided by the author
Package dbstats provides shims for writing db logger events to a stats collector.
Package grpcstats provides shims for writing rpc logger events to a stats collector.
Package httpstats provides shims for writing webutil logger events to a stats collector.
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AddDefaultTags adds default tags to a stats collector.
AddDefaultTagsFromEnv adds default tags to a collector from environment values.
AddErrorListeners adds error listeners.
AddErrorListenersByClass adds error listeners that add an exception class tag.
GetCollector gets a collector off a context.
GetDefaultsAsTags reads constants supplied at collector initialization and returns the keys and values formatted as a slice of stats tags.
GetLoggerLabelsAsTags reads the logger labels map off the context and returns the keys and values formatted as a slice of stats tags.
NewAddListenerOptions creates a new add listener options.
NewMockCollector returns a new mock collector.
NewMockEventCollector returns a new mock collector.
NewPrinter creates a printer from a given logger.
OptIncludeLoggerLabelsAsTags includes logger labels as tags.
OptRequestIncludeConstantsAsTags includes fixed tags.
OptRequestSanitizeDefaults includes logger labels as tags.
Runtime reports golang vm runtime stats.
SplitTag splits a given tag in a key and a value.
Tag formats a tag with a given key and value.
WithCollector adds the collector to a context.
# Constants
EventAlertTypeError is the "error" AlertType for events.
EventAlertTypeInfo is the "info" AlertType for events.
EventAlertTypeSuccess is the "success" AlertType for events.
EventAlertTypeWarning is the "warning" AlertType for events.
EventPriorityLow is the "low" Priority for events.
EventPriorityNormal is the "normal" Priority for events.
Specialized / default values.
Specialized / default values.
MetricNames are names we use when sending data to the collectors.
Tag names are names for tags, either on metrics or traces.
Tag names are names for tags, either on metrics or traces.
Tag names are names for tags, either on metrics or traces.
Tag names are names for tags, either on metrics or traces.
Tag names are names for tags, either on metrics or traces.
Tag names are names for tags, either on metrics or traces.
Tag names are names for tags, either on metrics or traces.
Tag names are names for tags, either on metrics or traces.
Tag names are names for tags, either on metrics or traces.
# Structs
AddListenerOptions are options for adding listeners.
Event is an event to be collected.
MockCollector is a mocked collector for stats.
MockEventCollector is a mocked collector for stats.
MockMetric is a mock metric.
Printer is a collector that prints calls to a given writer.
# Interfaces
Collector is a stats collector.
EventCollector is a collector for events.
Taggable is an interface for specifying and retrieving default stats tags.
# Type aliases
AddListenerOption mutates AddListenerOptions.
MultiCollector is a class that wraps a set of statsd collectors.