Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLogger ¶ added in v0.2.1
BuildLogger creates a slog.Logger configured with log level thresholds, output format, sensitive attribute redaction, and OpenTelemetry trace correlation.
Types ¶
type Telemetry ¶
type Telemetry struct {
// contains filtered or unexported fields
}
Telemetry coordinates structured logging, OpenTelemetry distributed tracing, attribute redaction, and HTTP middleware instrumentation.
func New ¶
New initializes an agnostic Telemetry instance from the manifest configuration. It configures a structured logger with trace correlation, binds an OpenTelemetry tracer, and installs W3C TraceContext and Baggage as global text map propagators.
func (*Telemetry) Middleware ¶
Middleware wraps an http.Handler with request-level panic recovery, distributed trace propagation, and structured 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 an executing pipeline step and returns an updated context.Context along with an end closure to record completion or error status.