Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOpContext ¶
CreateOpContext creates an operation context with correlation data
func GetTraceIDFromContext ¶
GetTraceIDFromContext retrieves the trace ID from the operation context
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey wraps scalar string for use in context (to avoid naming collisions)
const TraceIDContextKey ContextKey = "trace_id"
TraceIDContextKey defines the context key used for tracking operation trace ID
func (ContextKey) String ¶
func (c ContextKey) String() string
String implements the Stringer interface for print statements
type Correlation ¶
type Correlation struct { Header map[string][]string TraceID ContextKey // TODO: consider uuid.UUID }
Correlation
Click to show internal directories.
Click to hide internal directories.