alloc_observe.Span
Internal implementation documentation
Defined in alloc_observe.
A thread-bound tracking token representing an active observation interval.
Source
Source: lib/alloc/observe/src/protocol.zig:297
zig
/// A thread-bound tracking token representing an active observation interval./// When created while observation is enabled, unsuppressed, and backed by an/// installed sink, an active span records the current thread parent operation/// ID, updates the thread current operation ID, increments the active operation/// count, and captures the sink reference. Active spans must be finished/// strictly in last-in, first-out order on their originating thread, and each/// token must be owned and finished by a single authoritative holder. When/// observation is disabled, suppressed, or running without an installed sink,/// the token is inert. Concrete field layouts differ between enabled and/// disabled builds.pub const Span = if (enabled) EnabledSpan else DisabledSpan;Source: lib/alloc/observe/src/root.zig:438
zig
/// A thread-bound tracking token representing an active observation interval./// When created while observation is enabled, unsuppressed, and backed by an/// installed sink, an active span records the current thread parent operation/// ID, updates the thread current operation ID, increments the active operation/// count, and captures the sink reference. Active spans must be finished/// strictly in last-in, first-out order on their originating thread, and each/// token must be owned and finished by a single authoritative holder. When/// observation is disabled, suppressed, or running without an installed sink,/// the token is inert. Concrete field layouts differ between enabled and/// disabled builds.pub const Span = protocol.Span;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |