otel

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package otel connects the metrics package to OpenTelemetry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(scope instrumentation.Scope, exporter sdkmetric.Exporter, interval time.Duration, f func(name string) bool)

Export sends the selected metrics to the exporter at the given interval.

Types

type Producer

type Producer struct {
	// contains filtered or unexported fields
}

Producer implements go.opentelemetry.io/otel/sdk/metric.Producer. Create one with NewProducer, then add it to a go.opentelemetry.io/otel/sdk/metric.Reader using the go.opentelemetry.io/otel/sdk/metric.WithProducer option.

func NewProducer

func NewProducer(scope instrumentation.Scope, f func(name string) bool) *Producer

func (*Producer) Produce

func (p *Producer) Produce(ctx context.Context) ([]omd.ScopeMetrics, error)

Jump to

Keyboard shortcuts

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