Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracer ¶ added in v0.8.1
func InitTracer(log logrus.FieldLogger, cfg *config.Config, serviceName string) func(context.Context) error
InitTracer initializes OpenTelemetry tracing using the provided config. It sets the global TracerProvider, which will be used for all span creation throughout the application. If tracing is disabled or misconfigured, a no-op tracer provider is used instead.
The returned shutdown function should be called on application exit to ensure all spans are flushed.
Types ¶
type MetricsServer ¶
type MetricsServer struct {
// contains filtered or unexported fields
}
func NewMetricsServer ¶
func NewMetricsServer( log logrus.FieldLogger, cfg *config.Config, collectors ...metrics.NamedCollector, ) *MetricsServer
Click to show internal directories.
Click to hide internal directories.