pub fn acquire_allocation_group_id(
    component_id: String,
    component_type: String,
    component_kind: String,
) -> AllocationGroupId
Expand description

Acquires an allocation group ID.

This creates an allocation group which allows callers to enter/exit the allocation group context, associating all (de)allocations within the context with that group. An allocation group ID must be “attached” to a [tracing::Span] to achieve this“ we utilize the logical invariants provided by spans – entering, exiting, and how spans exist as a stack – in order to handle keeping the “current allocation group” accurate across all threads.