Documentation ¶
Index ¶
- func Capture(ts trace.TraceState) trace.TraceState
- func GetInternalState(ts trace.TraceState, key InternalTSKey) (string, error)
- func GetSw(ts trace.TraceState) string
- func RemoveInternalState(ts trace.TraceState, key InternalTSKey) (trace.TraceState, error)
- func SetInternalState(ts trace.TraceState, key InternalTSKey, val string) (trace.TraceState, error)
- func SetSw(ts trace.TraceState, val string) (trace.TraceState, error)
- type InternalTSKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capture ¶
func Capture(ts trace.TraceState) trace.TraceState
Capture returns a tracestate with other (non-sw) vendor identifiers
func GetInternalState ¶
func GetInternalState(ts trace.TraceState, key InternalTSKey) (string, error)
GetInternalState retrieves the value from the tracestate, requiring that it be an internal key
func GetSw ¶
func GetSw(ts trace.TraceState) string
func RemoveInternalState ¶
func RemoveInternalState(ts trace.TraceState, key InternalTSKey) (trace.TraceState, error)
RemoveInternalState removes an internal key from the trace state
func SetInternalState ¶
func SetInternalState(ts trace.TraceState, key InternalTSKey, val string) (trace.TraceState, error)
SetInternalState sets a key in the TraceState, requiring that it be an internal key
func SetSw ¶
func SetSw(ts trace.TraceState, val string) (trace.TraceState, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.