Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Key tracing types

The key types involved in tracing live in the tracing module. They include:

  • Span: A kind of event representing a span in a distributed trace.
  • TraceId: A 128bit trace identifier.
  • SpanId: A 64bit span identifier.
  • SpanCtxt: A combination of trace id, parent span id, and span id carried by each span. See Manual span creation for more details.
  • SpanGuard: A handle to a currently executing span. The guard takes care of completing and emitting a span event when its instrumented function returns. See Manual span completion for more details.
  • Completion: Called by SpanGuards with a Span on completion. A Completion will typically forward on to an Emitter, perhaps enriching the Span along the way.