Documentation ¶
Overview ¶
Package traceid provides [htadaptor.Middleware] that injects trace identifiers into request context.Context and a matching slog.Handler for populating the log records with the identifier.
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 NewContextHandler ¶
func NewContextHandler(h slog.Handler) *ContextHandler
Click to show internal directories.
Click to hide internal directories.