tracedata

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceData

type TraceData interface {
	// Span spans the existing trace data and puts that into the request.
	// Returns the updated request and a trace string for logging.
	// Does not change the input trace data.
	Span(r *http.Request) (*http.Request, string)

	// SetHeader sets request headers according to the trace data.
	// Input headers object must not be nil.
	SetHeader(header http.Header)

	// IsReceived tells whether trace data was received (parsed from a request) or a random one.
	IsReceived() bool

	// String makes a log string from trace data.
	String() string

	// TraceID returns the trace ID of the trace data.
	TraceID() string

	// SpanID returns the span ID of the trace data.
	SpanID() string
}

TraceData contains HTTP message tracing data of various kind.

Jump to

Keyboard shortcuts

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