Documentation ¶
Overview ¶
Package tallyotel provides a bridge between code instrumented to emit metrics via the the standard Open Telemetry go library/sdk (https://github.com/open-telemetry/opentelemetry-go) and the Tally (https://github.com/uber-go/tally) metrics library. Effectively it allows you to use Open Telmetry to _record_ your metrics and Tally to _emit_ your metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // WithHistogramBucketer wraps a HistogramBucketer into a tallyotel Opt so // that it can be passed in to a MeterProvider. WithHistogramBucketer = bridge.WithHistogramBucketer // WithMeterScoper wraps a MeterScoper into a tallyotel Opt so that it can // be passed in to a a MeterProvider. WithMeterScoper = bridge.WithMeterScoper // DefaultBucketer returns the default histogram buckets. It is exposed here // for use as a fallback bucketing strategy within a custom // HistogramBucketer. DefaultBucketer = bridge.DefaultBucketer // WithScopeNameSeparator provides a string to a MeterProvider at // construction time to be used in splitting child Meter names into scope // names. WithScopeNameSeparator = bridge.WithScopeNameSeparator )
Functions ¶
func NewMeterProvider ¶
func NewMeterProvider(scope tally.Scope, opts ...Opt) metric.MeterProvider
NewMeterProvider instantiates a tallyotel bridge metric.MeterProvider that uses the supplied tally.Scope as a base scope for the creation of child Meters and Instruments.
Types ¶
type HistogramBucketer ¶
type HistogramBucketer = bridge.HistogramBucketer
HistogramBucketer is an func allowing client code to pick different bucketization strategies for histograms based on the information in the histogram's sdkapi.Descriptor.
type MeterScoper ¶ added in v0.5.0
type MeterScoper = bridge.MeterScoper
MeterScoper allows clients to override the default behavior of creating a named Tally sub-scope for each Meter.