Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "sprout:otel", fx.Provide(logging.LogrLogger("otel"), fx.Private), fx.Provide(logging.Logger("otel"), fx.Private), fx.Provide(config.Config("OTEL_TRACING", traceConfig{}), fx.Private), fx.Invoke(func(logger logr.Logger) { otel.SetLogger(logger) otel.SetErrorHandler(otel.ErrorHandlerFunc(func(err error) { logger.Error(err, "OpenTelemetry error") })) }), fx.Provide(createResource), fx.Provide(setupTracing), fx.Provide(setupMetrics), )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.