tracingutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestCtxSpanExtractor

type RequestCtxSpanExtractor int

func (RequestCtxSpanExtractor) Extract

Extract implements trace.SpanExtractor

type RequestHeaderCarrier

type RequestHeaderCarrier struct {
	// contains filtered or unexported fields
}

RequestHeaderCarrier adapts fasthttp.RequestHeader to satisfy the TextMapCarrier interface.

func NewRequestHeaderCarrier

func NewRequestHeaderCarrier(header *http.RequestHeader) *RequestHeaderCarrier

func (RequestHeaderCarrier) Get

func (hc RequestHeaderCarrier) Get(key string) string

Get returns the value associated with the passed key.

func (RequestHeaderCarrier) Keys

func (hc RequestHeaderCarrier) Keys() []string

Keys lists the keys stored in this carrier.

func (RequestHeaderCarrier) Set

func (hc RequestHeaderCarrier) Set(key string, value string)

Set stores the key-value pair.

Jump to

Keyboard shortcuts

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