Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Meter metric.Meter
Meter is the default Flipt-wide otel metric Meter.
Functions ¶
This section is empty.
Types ¶
type MustAsyncInt64InstrumentProvider ¶
type MustAsyncInt64InstrumentProvider interface { // Counter creates an instrument for recording increasing values. Counter(name string, opts ...instrument.Option) asyncint64.Counter // UpDownCounter creates an instrument for recording changes of a value. UpDownCounter(name string, opts ...instrument.Option) asyncint64.UpDownCounter // Histogram creates an instrument for recording a distribution of values. Gauge(name string, opts ...instrument.Option) asyncint64.Gauge }
MustAsyncInt64InstrumentProvider is a syncint64.InstrumentProvider which panics if it cannot successfully build the requestd counter, upDownCounter or histogram.
func MustAsyncInt64 ¶
func MustAsyncInt64() MustAsyncInt64InstrumentProvider
MustAsyncInt64 returns a syncint64 instrument provider based on the global Meter. The returns provider panics instead of returning an error when it cannot build a required counter, upDownCounter or histogram.
type MustSyncInt64InstrumentProvider ¶
type MustSyncInt64InstrumentProvider interface { // Counter creates an instrument for recording increasing values. Counter(name string, opts ...instrument.Option) syncint64.Counter // UpDownCounter creates an instrument for recording changes of a value. UpDownCounter(name string, opts ...instrument.Option) syncint64.UpDownCounter // Histogram creates an instrument for recording a distribution of values. Histogram(name string, opts ...instrument.Option) syncint64.Histogram }
MustSyncInt64InstrumentProvider is a syncint64.InstrumentProvider which panics if it cannot successfully build the requestd counter, upDownCounter or histogram.
func MustSyncInt64 ¶
func MustSyncInt64() MustSyncInt64InstrumentProvider
MustSyncInt64 returns a syncint64 instrument provider based on the global Meter. The returns provider panics instead of returning an error when it cannot build a required counter, upDownCounter or histogram.