swotel

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

type InternalTSKey

type InternalTSKey int
const (
	XTraceOptResp InternalTSKey = iota
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL