pub struct CallsiteRecord {
pub id: u64,
pub source: CallsiteSource,
pub target: String,
pub name: String,
pub module_path: String,
pub file: String,
pub line: Option<NonZeroU32>,
pub sev: Severity,
pub field_names: Vec<String>,
pub template: String,
pub registered_ns: u64,
pub events_since_refresh: AtomicU64,
}Expand description
Stable record kept per callsite_id. Spec 31 § 3.2.
Records live behind Arc<CallsiteRecord> in the registry; we never
Clone one whole, so omitting Clone lets the per-record
AtomicU64 event counter live in-line without indirection.
Fields§
§id: u6464-bit BLAKE3-derived stable id.
source: CallsiteSourceSource vocabulary.
target: StringTracing/forensic target (sqlx::query, myapp::auth, …).
name: StringDisplay name (event src/foo.rs:42, span name, function name).
module_path: StringModule path or empty.
file: StringSource file path or empty.
line: Option<NonZeroU32>Source line; None when unavailable.
sev: SeveritySeverity / level.
field_names: Vec<String>Field names in stable order.
template: StringOptional rendered template; empty for non-templated paths.
registered_ns: u64Wall-clock ns at registration time (used for re-emit cadence).
events_since_refresh: AtomicU64Approximate count of envelopes that referenced this callsite since the last refresh. Reset by re-emit cadence.
Implementations§
Source§impl CallsiteRecord
impl CallsiteRecord
Sourcepub fn reset_count(&self)
pub fn reset_count(&self)
Reset the per-cadence event counter.