Documentation ¶ Index ¶ func New(env string) *slog.Logger Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(env string) *slog.Logger New creates a *slog.Logger wrapped with an otelHandler that automatically injects trace_id and span_id from the OpenTelemetry span context. In dev mode it uses a human-readable text handler; otherwise JSON. Types ¶ This section is empty. Source Files ¶ View all Source files logging.go Click to show internal directories. Click to hide internal directories.