Skip to main content

Module spans

Module spans 

Source
Expand description

Render the tracing span trace as a compact breadcrumb.

The span trace carries the instrumented spans active when the error was created plus their field values (request_id, course_id, …). Rendered root-first as http_request{request_id=…} › send_message{course_id=…} for request context at a glance.

Structs§

SpanEntry
One captured span reduced to its name and formatted fields.

Constants§

MAX_FIELDS_LEN 🔒
Maximum length of a single span’s rendered field string before truncation.
OUR_TARGET_PREFIX 🔒
Only include spans from our own instrumentation; runtime/library spans add noise.

Functions§

breadcrumb
Extract and render a span trace’s breadcrumb.
extract_spans
Extract our-instrumentation spans from a [SpanTrace], ordered root-first.
render_breadcrumb
Build the breadcrumb from root-first entries, or None if there is nothing to show.
truncate 🔒