Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrometheusMetricsProvider ¶
func NewPrometheusMetricsProvider(ex *prometheus.Exporter, opts ...metric.Option) *metric.MeterProvider
Types ¶
type Metrics ¶
type Metrics interface { Counter(ctx context.Context, met string, value float64, opt ...metric.AddOption) error UpDownCounter(ctx context.Context, met string, value float64, opt ...metric.AddOption) error Histogram(ctx context.Context, met string, value float64, opt ...metric.RecordOption) error }
func NewMetrics ¶
func NewMetrics(opts ...MetricsOpts) Metrics
type MetricsOpts ¶
type MetricsOpts func(*metrics)
func WithNamespace ¶
func WithNamespace(namespace string) MetricsOpts
Click to show internal directories.
Click to hide internal directories.