Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeadersCarrier ¶
HeadersCarrier is a dedicated carrier for TChannel. When writing the tracing headers into headers, the $tracing$ prefix is added to each tracing header key. When reading the tracing headers from headers, the $tracing$ prefix is removed from each tracing header key.
func (HeadersCarrier) ForeachKey ¶
func (c HeadersCarrier) ForeachKey(handler func(string, string) error) error
ForeachKey iterates over all tracing headers in the carrier, applying the provided handler function to each header after stripping the $tracing$ prefix from the keys.
func (HeadersCarrier) Set ¶
func (c HeadersCarrier) Set(key, value string)
Set adds a tracing header to the carrier, prefixing the key with $tracing$ before storing it.
Click to show internal directories.
Click to hide internal directories.