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 ¶
NewRequestID returns a single-hop request id using the current UTC time.
func NewRequestIDWithTime ¶
NewRequestIDWithTime returns a single-hop request id using the provided time.
func NewTraceID ¶
NewTraceID returns a 32-character lower-case hex trace id.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.