Documentation ¶
Index ¶
Constants ¶
View Source
const ( OriginalTraceParentHeader string = "original-traceparent" TraceParentHeader string = "traceparent" )
Variables ¶
View Source
var ( // PreserveTraceParentHandler is a client stats.Handler that preserves the original // traceparent header in the outgoing context, with a different header name. // // This is useful when the next hop in the request chain (like Cloud Run) may lose span // information, and become an unreliable span. In those cases, we just use the original // traceparent header to associate child spans directly with the outgoing span here. PreserveTraceParentHandler stats.Handler = &preserveTraceParentHandler{} )
View Source
var ( // RestoreTraceParentHandler is a server stats.Handler that restores the traceparent // stored by the PreserveTraceParentHandler. RestoreTraceParentHandler stats.Handler = &restoreTraceParentHandler{} )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.