otel

package
v0.0.0-...-c99e1c3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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
	TracerProvider *trace.TracerProvider
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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