Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Carrier ¶
type Carrier struct {
// contains filtered or unexported fields
}
Carrier satisfies both TextMapWriter and TextMapReader.
Example usage for server side:
carrier := opentracefasthttp.New(&ctx.Request.Header) clientContext, err := tracer.Extract(opentracing.HTTPHeaders, carrier)
Example usage for client side:
carrier := opentracefasthttp.New(&req.Header) err := tracer.Inject( span.Context(), opentracing.HTTPHeaders, carrier)
func New ¶
func New(h *fasthttp.RequestHeader) Carrier
func (Carrier) ForeachKey ¶
ForeachKey conforms to the TextMapReader interface.
Click to show internal directories.
Click to hide internal directories.