propagation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 3 Imported by: 10

Documentation

Index

Constants

View Source
const EnvIDHeader = "env-id"

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvID

type EnvID struct{}

func (EnvID) Extract

func (e EnvID) Extract(parent context.Context, carrier propagation.TextMapCarrier) context.Context

func (EnvID) Fields

func (e EnvID) Fields() []string

func (EnvID) Inject

func (e EnvID) Inject(ctx context.Context, carrier propagation.TextMapCarrier)

type PiCoPCarrier

type PiCoPCarrier struct {
	*header.Header
}

PiCoPCarrier adapts PiCoP to satisfy the OpenTelemetry TextMapCarrier interface.

func NewPiCoPCarrier

func NewPiCoPCarrier(h *header.Header) PiCoPCarrier

func (PiCoPCarrier) Get

func (bc PiCoPCarrier) Get(key string) string

func (PiCoPCarrier) Keys

func (bc PiCoPCarrier) Keys() []string

func (PiCoPCarrier) Set

func (bc PiCoPCarrier) Set(key, value string)

Jump to

Keyboard shortcuts

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