Skip to main content

scope_kv

Function scope_kv 

Source
pub fn scope_kv(scope: Option<&InstrumentationScope>) -> usize
Expand description

Count the attributes a request will contribute, for a headroom check.

Scope contributes attributes.len() + 2 because otel.scope.name and .version are synthesised into the attribute table.