Documentation ¶
Index ¶
- Variables
- func IsEnabled(cfg *Config) bool
- func MustFloat64Histogram(meter metric.Meter, name, description string) metric.Float64Histogram
- func MustFloat64ObservableCounter(meter metric.Meter, name, description string) metric.Float64ObservableCounter
- func MustInt64Counter(meter metric.Meter, name, description string) metric.Int64Counter
- func MustInt64ObservableCounter(meter metric.Meter, name, description string) metric.Int64ObservableCounter
- func MustInt64ObservableGauge(meter metric.Meter, name, description string) metric.Int64ObservableGauge
- func NewMeter(provider om.MeterProvider, name env.Name) om.Meter
- func NewMeterProvider(params MeterProviderParams) om.MeterProvider
- func NewReader(cfg *Config) (sm.Reader, error)
- type Config
- type MeterParams
- type MeterProviderParams
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewReader), fx.Provide(NewMeterProvider), fx.Provide(NewMeter), )
Module for fx.
Functions ¶
func MustFloat64Histogram ¶ added in v1.161.0
func MustFloat64Histogram(meter metric.Meter, name, description string) metric.Float64Histogram
MustFloat64Histogram for metrics.
func MustFloat64ObservableCounter ¶ added in v1.161.0
func MustFloat64ObservableCounter(meter metric.Meter, name, description string) metric.Float64ObservableCounter
MustFloat64ObservableCounter for metrics.
func MustInt64Counter ¶ added in v1.161.0
func MustInt64Counter(meter metric.Meter, name, description string) metric.Int64Counter
MustInt64Counter for metrics.
func MustInt64ObservableCounter ¶ added in v1.161.0
func MustInt64ObservableCounter(meter metric.Meter, name, description string) metric.Int64ObservableCounter
MustInt64ObservableCounter for metrics.
func MustInt64ObservableGauge ¶ added in v1.161.0
func MustInt64ObservableGauge(meter metric.Meter, name, description string) metric.Int64ObservableGauge
MustFloat64Histogram for metrics.
func NewMeterProvider ¶ added in v1.265.0
func NewMeterProvider(params MeterProviderParams) om.MeterProvider
NewMeterProvider for metrics.
Types ¶
type Config ¶ added in v1.152.0
type Config struct { Headers header.Map `yaml:"headers,omitempty" json:"headers,omitempty" toml:"headers,omitempty"` Kind string `yaml:"kind,omitempty" json:"kind,omitempty" toml:"kind,omitempty"` URL string `yaml:"url,omitempty" json:"url,omitempty" toml:"url,omitempty"` }
Config for metrics.
func (*Config) IsPrometheus ¶ added in v1.191.1
IsPrometheus configuration.
type MeterParams ¶ added in v1.172.0
MeterParams for metrics.
Click to show internal directories.
Click to hide internal directories.