Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerFromContext ¶
Retrieves the logger from the context. It creates a new one if it can't be found.
func LoggerToContext ¶
Stores the logger in the context.
func TraceToHTTPHeaders ¶
ToHTTPHeaders adds tracing information to HTTP headers.
Types ¶
type Trace ¶
func TraceFromHTTPHeaders ¶
FromHTTPHeaders extracts tracing information from HTTP headers. If no tracing information is found, a new trace is created with only `TraceID` set.
Click to show internal directories.
Click to hide internal directories.