Macro span
macro_rules! span {
($name:literal) => { ... };
($name:literal, $($attributes:tt)+) => { ... };
}
Expand description
Creates a new span.
A span represents a unit of work or operation that has a beginning and end. It can contain attributes that provide additional context about the operation.
ยงExamples
use veecle_telemetry::span;
let span = span!("database_query");
use veecle_telemetry::span;
let user_id = 123;
let table_name = "users";
let span =
span!("database_query", user_id, table = table_name, "operation" = "select");