tracing

package
v1.77.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeadersCarrier

type HeadersCarrier map[string]string

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.

Jump to

Keyboard shortcuts

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