trace

package
v0.0.0-...-88bebb9 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HeaderTraceID is the full-link trace header defined by the tracing spec.
	HeaderTraceID = "ofa-pass-trace-id"
	// HeaderOperator is the full-link operator header defined by the tracing spec.
	HeaderOperator = "ofa-pass-operator"
	// HeaderTenantID is the full-link tenant header defined by the tracing spec.
	HeaderTenantID = "ofa-pass-tenant-id"
	// HeaderAppID is the full-link application header defined by the tracing spec.
	HeaderAppID = "ofa-pass-app-id"
	// HeaderLocale is the full-link locale header defined by the i18n spec.
	HeaderLocale = "ofa-pass-locale"
	// HeaderRequestID is the single-hop request header defined by the tracing spec.
	HeaderRequestID = "ofa-direct-request-id"
	// HeaderRemainingTimeoutMS is the single-hop timeout budget header.
	HeaderRemainingTimeoutMS = "ofa-direct-remaining-timeout-ms"
)

Variables

This section is empty.

Functions

func NewRequestID

func NewRequestID() (string, error)

NewRequestID returns a single-hop request id using the current UTC time.

func NewRequestIDWithTime

func NewRequestIDWithTime(now time.Time) (string, error)

NewRequestIDWithTime returns a single-hop request id using the provided time.

func NewTraceID

func NewTraceID() (string, error)

NewTraceID returns a 32-character lower-case hex trace id.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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