Documentation
¶
Index ¶
- func Configure(enable []string)
- func IsEnabled(group, subsys string) bool
- func Provider(group string) *meterProvider
- func SetProvider(p *metric.MeterProvider)
- func WithMeterOptions(options ...otelmetric.MeterOption) *meterOption
- func WithOmitGroup() *meterOption
- func WithOmitSubsystem() *meterOption
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
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.
Click to show internal directories.
Click to hide internal directories.