Documentation ¶
Index ¶
Constants ¶
View Source
const TraceID = "traceid"
TraceID is the header that is passed in outgoing response
Variables ¶
This section is empty.
Functions ¶
func SetTraceID ¶
SetTraceID is a http middleware that checks for "Traceparent" header in the incoming requests. If present, parse and extract the traceid. Else create a custom traceid and sets it as new "Traceparent" header in incoming request. Also sets that traceid in outgoing response header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.