observability

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTraceID

func GetTraceID(ctx context.Context) string

GetTraceID retrieves the trace ID from context.

func NewLogger

func NewLogger(base *zap.Logger) *zap.Logger

NewLogger creates a structured logger that automatically injects trace context.

func WithTraceID

func WithTraceID(ctx context.Context, traceID string) context.Context

WithTraceID stores a trace ID in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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