Documentation
¶
Overview ¶
Package transport provides common variables and types that are used across different transport implementations, i.e. HTTP, Thrift and gRPC.
Index ¶
Constants ¶
View Source
const ( HeaderEdgeRequest = "Edge-Request" // The Trace ID, a 64-bit integer encoded in decimal. HeaderTracingTrace = "Trace" // The Span ID, a 64-bit integer encoded in decimal. HeaderTracingSpan = "Span" // The Parent Span ID, a 64-bit integer encoded in decimal. HeaderTracingParent = "Parent" // The Sampled flag, an ASCII "1" (HeaderTracingSampledTrue) if true, // otherwise false. // If not present, defaults to false. HeaderTracingSampled = "Sampled" // Trace flags, a 64-bit integer encoded in decimal. // If not present, defaults to null. HeaderTracingFlags = "Flags" // UserAgent related headers. HeaderUserAgent = "User-Agent" // HeaderTracingSampledTrue is the header value to indicate that this trace // should be sampled. HeaderTracingSampledTrue = "1" // Number of milliseconds, 64-bit integer encoded in decimal. HeaderDeadlineBudget = "Deadline-Budget" )
Edge request context propagation related headers for gRPC and Thrift. For HTTP related headers refer to httpbp package. https://pages.github.snooguts.net/reddit/baseplate.spec/component-apis/thrift#edge-request-context-propagation
View Source
const WithRetrySlugSuffix = "-with-retry"
WithRetrySlugSuffix is the suffix we add to service slug for after retry metrics, to distinguish from raw client metrics.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.