Documentation
¶
Index ¶
Constants ¶
View Source
const (
LevelTrace = slog.Level(-8)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextHandler ¶ added in v0.7.0
type ContextHandler struct {
// contains filtered or unexported fields
}
ContextHandler is a custom slog.Handler that adds context attributes to log records from values set to the context by the RPC interceptor. It is used to enrich log records with request-specific metadata such as request ID, user agent, request IP, and actor ID.
func (*ContextHandler) Handle ¶ added in v0.7.0
Handle overrides the default Handle method to add context values set by RPC interceptor.
Click to show internal directories.
Click to hide internal directories.