Documentation
¶
Index ¶
- func ContextFromHeaders(ctx context.Context, headers map[string]string) context.Context
- func ContextWithTrace(ctx context.Context, traceID string, spanID string) context.Context
- func ExtractCarrier(ctx context.Context, carrier Carrier) context.Context
- func ExtractHTTPHeader(ctx context.Context, header http.Header) context.Context
- func HeaderValue(headers map[string]string, key string) string
- func HeadersFromContext(ctx context.Context) map[string]string
- func InjectCarrier(ctx context.Context, carrier Carrier)
- func InjectHTTPHeader(ctx context.Context, header http.Header)
- func RequestID(ctx context.Context) string
- func SpanID(ctx context.Context) string
- func SpanIDFromHeaders(headers map[string]string) string
- func TraceID(ctx context.Context) string
- func TraceIDFromHeaders(headers map[string]string) string
- func Traceparent(ctx context.Context) string
- type Carrier
- type HeaderCarrier
- type KeyCarrier
- type MapCarrier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextFromHeaders ¶
func ContextWithTrace ¶
func ExtractHTTPHeader ¶
func InjectCarrier ¶
func SpanIDFromHeaders ¶
func TraceIDFromHeaders ¶
func Traceparent ¶
Types ¶
type HeaderCarrier ¶
func (HeaderCarrier) Get ¶
func (c HeaderCarrier) Get(key string) string
func (HeaderCarrier) Keys ¶
func (c HeaderCarrier) Keys() []string
func (HeaderCarrier) Set ¶
func (c HeaderCarrier) Set(key string, value string)
type KeyCarrier ¶
type MapCarrier ¶
func (MapCarrier) Get ¶
func (c MapCarrier) Get(key string) string
func (MapCarrier) Keys ¶
func (c MapCarrier) Keys() []string
func (MapCarrier) Set ¶
func (c MapCarrier) Set(key string, value string)
Click to show internal directories.
Click to hide internal directories.