method Span.setInt
Adds an integer attribute.
Example:
use std.obs { span }
fn main() io {
let s = span.start("batch")
s.setInt("items", 120)
s.end()
print("ok")
}Output
ok
pub(api) fn setInt(key: str, value: i64) ioComplexity. O(1); a no-op when the span is not recorded.
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
key | str |
value | i64 |
Effects
io
Defined in: std/obs/obs.oxl:350