propagation

package
v0.0.0-...-3c1e1a6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPFormatSequence

type HTTPFormatSequence struct {
	Ingress []propagation.HTTPFormat
	Egress  []propagation.HTTPFormat
}

HTTPFormatSequence is a propagation.HTTPFormat that applies multiple other propagation formats. For incoming requests, it will use the first SpanContext it can find, checked in the order of HTTPFormatSequence.Ingress. For outgoing requests, it will apply all the formats to the outgoing request, in the order of HTTPFormatSequence.Egress.

func (*HTTPFormatSequence) SpanContextFromRequest

func (h *HTTPFormatSequence) SpanContextFromRequest(req *http.Request) (trace.SpanContext, bool)

SpanContextFromRequest satisfies the propagation.HTTPFormat interface.

func (*HTTPFormatSequence) SpanContextToRequest

func (h *HTTPFormatSequence) SpanContextToRequest(sc trace.SpanContext, req *http.Request)

SpanContextToRequest satisfies the propagation.HTTPFormat interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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