instrumentation

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

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

func (*MetricsServer) Run

func (m *MetricsServer) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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