Discover Packages
github.com/BaSui01/agentflow
pkg
telemetry
package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Feb 26, 2026
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
LoggerWithTrace returns a logger with trace_id and span_id fields from the context.
If the context has no valid span, the original logger is returned unchanged.
type Providers struct {
}
Providers holds the OTel SDK TracerProvider and MeterProvider.
When telemetry is disabled, both fields are nil and Shutdown is a no-op.
Init initializes the OTel SDK. When cfg.Enabled is false, it returns
a noop Providers (nil tp/mp) without connecting to any external service.
Shutdown flushes pending spans/metrics and closes exporters.
Safe to call on noop Providers (nil tp/mp).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.