tracing

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// B3TraceIDHeader is the header used by the B3 propagation format to pass the trace ID.
	B3TraceIDHeader = "X-B3-TraceId"
	// B3SpanIDHeader is the header used by the B3 propagation format to pass the span ID.
	B3SpanIDHeader = "X-B3-SpanId"

	// DatadogTraceIDHeader is the header used by the Datadog tracing system to pass the trace ID.
	DatadogTraceIDHeader = "X-Datadog-Trace-Id"
	// DatadogParentIDHeader is the header used by the Datadog tracing system to pass the parent ID.
	DatadogParentIDHeader = "X-Datadog-Parent-Id"
)

Variables

This section is empty.

Functions

func DoRequest

func DoRequest(ctx context.Context, httpClient *http.Client, req *http.Request) (*http.Response, error)

DoRequest is a helper function that sends an HTTP request and logs the result with DataDog trace ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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