Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Tag ¶
Tag will create from given key and value a tag for statsd metrics in a format key:value Value will be sanitized by default: - value will be lowercase, starting with letter - value will contain only alphanumerics and underscores, commas and slashes sanitizing can be skipped by using UnsafeTag instead.
Types ¶
type MetricSettings ¶
MetricSettings are settings required to set up metrics client.
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is the instance of metrics to be used.
func CreateNewMetricService ¶
func CreateNewMetricService(settings MetricSettings) (*Metrics, error)
CreateNewMetricService creates an instance of Metrics and returns it.
type Tracer ¶
type Tracer struct{}
Tracer is the Tracer instance that contains all the methods.
func CreateNewTracingService ¶
func CreateNewTracingService(options TracerOptions) (*Tracer, error)
CreateNewTracingService creates a new Instance of Tracer.
func (*Tracer) FinishSpan ¶
FinishSpan finishes tracking given span. Should be used in conjunction with defer to trigger at the end of every function that should be tracked.