otel

package
v0.0.0-...-fcff521 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"otel",
	fx.Provide(newProvider),
	fx.Invoke(providerLC),
	fx.Provide(fx.Annotate(newMeter, fx.As(new(Meter)))),
)

Functions

This section is empty.

Types

type Meter

type Meter interface {
	Int64Counter(
		name string,
		opts ...metric.Int64CounterOption,
	) (metric.Int64Counter, error)

	Int64Histogram(
		name string,
		opts ...metric.Int64HistogramOption,
	) (metric.Int64Histogram, error)
}

type Provider

type Provider struct {
	fx.Out

	LoggerProvider *log.LoggerProvider
	MeterProvider  *metric.MeterProvider
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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