metrics

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure added in v0.12.0

func Configure(enable []string)

Configure which metrics are enabled for collection.

func IsEnabled added in v0.12.0

func IsEnabled(group, subsys string) bool

IsEnabled returns true if the given metric group or subsystem is enabled.

func Provider added in v0.12.0

func Provider(group string) *meterProvider

Provider returns a provider for the given metric group.

func SetProvider added in v0.12.0

func SetProvider(p *metric.MeterProvider)

SetProvider sets up the OpenTelemetry meter provider we use.

func WithMeterOptions added in v0.12.0

func WithMeterOptions(options ...otelmetric.MeterOption) *meterOption

WithMeterOptions sets OpenTelemetry options for a meter.

func WithOmitGroup added in v0.12.0

func WithOmitGroup() *meterOption

WithOmitGroup prevents instruments of a meter from being prefixed with a group name.

func WithOmitSubsystem added in v0.12.0

func WithOmitSubsystem() *meterOption

WithOmitSubsystem prevents instruments of a meter from being prefixed with a subsystem name.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL