//! Shared thread ID for shard indexing.
//!
//! Each thread is assigned a unique, monotonically increasing ID on first use.
//! Metric types use `thread_id() & mask` for lock-free shard selection.
use Cell;
use ;
static THREAD_COUNTER: AtomicUsize = new;
thread_local!
pub