Documentation ¶
Index ¶
Constants ¶
View Source
const TRACE_ID = "trace_id"
Variables ¶
This section is empty.
Functions ¶
func LogRequest ¶
func LogResponse ¶
func WithClientTrace ¶ added in v0.10.0
Inject ClientTrace into request's context and modify original request
Types ¶
type LoggingMiddleware ¶ added in v0.10.0
type LoggingMiddleware struct {
// contains filtered or unexported fields
}
func (*LoggingMiddleware) ServeHTTP ¶ added in v0.10.0
func (l *LoggingMiddleware) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.