alloc_observe.currentOperationId
Internal implementation documentation
Defined in alloc_observe.
Returns the operation identifier currently active on the calling thread, which belongs to either an active span or a silent context, or zero if no operation is active or observation is disabled.
Source
Source: lib/alloc/observe/src/protocol.zig:534
zig
/// Returns the operation identifier currently active on the calling thread,/// which belongs to either an active span or a silent context, or zero if no/// operation is active or observation is disabled. Active suppression does not/// clear an already established identifier.pub inline fn currentOperationId() u64 { if (comptime !enabled) return 0; return current_operation_id;}Source: lib/alloc/observe/src/root.zig:484
zig
/// Returns the operation identifier currently active on the calling thread,/// which belongs to either an active span or a silent context, or zero if no/// operation is active or observation is disabled. Active suppression does not/// clear an already established identifier.pub const currentOperationId = protocol.currentOperationId;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |