Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶ added in v1.0.8
func Init(ctx context.Context, config OtelGoMetricsConfig) (context.Context, *sdk.MeterProvider, error)
Init initializes an OpenTelemetry metric provider with a specified configuration.
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.
Click to show internal directories.
Click to hide internal directories.