Documentation ¶
Index ¶
Constants ¶
View Source
const (
TraceCtxKey contextKey = iota + 1
)
Variables ¶
This section is empty.
Functions ¶
func DumpHttpRequest ¶
DumpHttpRequest dumps the HTTP request and prints out.
Types ¶
type TraceHandler ¶
TraceHandler allows the slog to add a trace ID to logs from the context. To add a trace ID to the context, use TraceCtxKey:
ctx = context.WithValue(ctx, log.TraceCtxKey, 'put_trace_id_here')
Click to show internal directories.
Click to hide internal directories.