telemetry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Telemetry

type Telemetry struct {
	// contains filtered or unexported fields
}

Telemetry provides vendor-agnostic logging, tracing, and metric instrumentation.

func New

func New(cfg config.Telemetry) *Telemetry

New initializes an agnostic Telemetry instance from manifest configuration.

func (*Telemetry) Logger

func (t *Telemetry) Logger() *slog.Logger

Logger returns the configured structured logger.

func (*Telemetry) Middleware

func (t *Telemetry) Middleware(next http.Handler) http.Handler

Middleware wraps an http.Handler with panic recovery, trace correlation, and access logging.

func (*Telemetry) StartStepSpan

func (t *Telemetry) StartStepSpan(ctx context.Context, stepType, stepName string) (context.Context, func(err error))

StartStepSpan starts an OpenTelemetry span for a pipeline step and returns an end function.

func (*Telemetry) Tracer

func (t *Telemetry) Tracer() trace.Tracer

Tracer returns the OpenTelemetry tracer instance.

Jump to

Keyboard shortcuts

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