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.
Click to show internal directories.
Click to hide internal directories.