Documentation ¶ Index ¶ func Init(ctx context.Context, config OtelGoMetricsConfig) (context.Context, *sdk.MeterProvider, error) type OtelGoMetricsConfig 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) 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. } Source Files ¶ View all Source files metrics.go Click to show internal directories. Click to hide internal directories.