Skip to documentation
SLOP

alloc_observe.currentOperationId

Reference 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.

No direct callersNo direct callsalloc_observecurrentOperationId
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433