trace

package
v0.17.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OriginalTraceParentHeader string = "original-traceparent"
	TraceParentHeader         string = "traceparent"
)

Variables

View Source
var (
	// PreserveTraceParentHandler is a client stats.Handler that preserves the original
	// traceparent header in the outgoing context, with a different header name.
	//
	// This is useful when the next hop in the request chain (like Cloud Run) may lose span
	// information, and become an unreliable span. In those cases, we just use the original
	// traceparent header to associate child spans directly with the outgoing span here.
	PreserveTraceParentHandler stats.Handler = &preserveTraceParentHandler{}
)
View Source
var (
	// RestoreTraceParentHandler is a server stats.Handler that restores the traceparent
	// stored by the PreserveTraceParentHandler.
	RestoreTraceParentHandler stats.Handler = &restoreTraceParentHandler{}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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