metrics

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v1.0.8

Init initializes an OpenTelemetry metric provider with a specified configuration.

func Shutdown added in v1.2.0

func Shutdown(ctx context.Context, meterProvider *sdk.MeterProvider)

Shutdown stops the metric provider.

Types

type OtelGoMetricsConfig

type OtelGoMetricsConfig struct {
	Attributes []attribute.KeyValue `json:"attributes"` // Attributes specifies the attributes to be added to the metric resource. Default is an empty slice.
}

OtelGoMetricsConfig specifies the configuration for the OpenTelemetry metrics.

Jump to

Keyboard shortcuts

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