pub trait SpanCombinator {
// Required methods
fn record_token_usage(&self, usage: &Usage);
fn record_response(
&self,
response_id: Option<&str>,
model: Option<&str>,
usage: &Usage,
);
}Expand description
Records GenAI usage and response metadata on tracing spans.
Required Methods§
Sourcefn record_token_usage(&self, usage: &Usage)
fn record_token_usage(&self, usage: &Usage)
Record Rig-normalized token usage fields on the span.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".