Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Tracing headers like in Zipkin (http://zipkin.io/) TraceIDHeader = "X-Trace-ID" SpanIDHeader = "X-Span-ID" ParentSpanIDHeader = "X-Parent-Span-ID" )
Variables ¶
This section is empty.
Functions ¶
func SetTraceDataToContext ¶
SetTraceDataToContext creates new child context with given trace data
func SetTraceDataToRequest ¶
SetTraceDataToRequest sets data to request
Types ¶
type TraceData ¶
func GetTraceDataFromContext ¶
GetTraceDataFromContext gets trace data from given context
func GetTraceDataFromRequest ¶
TraceFromContext returns data from request
Click to show internal directories.
Click to hide internal directories.