tracinghttp

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package tracinghttp provides marshaling support for tracing data into HTTP requests and responses

Index

Constants

View Source
const (
	SpanHeader  = "X-Xmidt-Span"
	ErrorHeader = "X-Xmidt-Error"
)

Variables

This section is empty.

Functions

func HeadersForSpans

func HeadersForSpans(timeLayout string, h http.Header, spans ...tracing.Span)

HeadersForSpans emits header information for each Span. The timeLayout may be empty, in which case time.RFC3339 is used. All times are converted to UTC prior to formatting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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