Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("otel", fx.Invoke( fx.Annotate( MeterProvider, fx.OnStop(stopMeterProvider), ), fx.Annotate( TracerProvider, fx.OnStop(stopTracerProvider), ), ), )
Module is a Fx module that initializes the OpenTelemetry MeterProvider and TracerProvider.
Functions ¶
func MeterProvider ¶
func MeterProvider(conf *config.Config) (*metric.MeterProvider, error)
MeterProvider constructs a new meter provider.
func TracerProvider ¶
func TracerProvider(conf *config.Config) (*trace.TracerProvider, error)
TracerProvider constructs a new trace provider.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.