Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextHandler ¶
type ContextHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(internal slog.Handler) *ContextHandler
func (*ContextHandler) Handle ¶
Handle records the active span on the log record under the field names the OTel spec fixes for non-OTLP log formats, so a collector can lift them onto the log record's own trace fields. Gated on the whole span context being valid: a trace ID without a span ID names a request but not the operation within it.
Click to show internal directories.
Click to hide internal directories.