pub trait TelemetryAttributeProvider:
Debug
+ Send
+ Sync {
// Required methods
fn task_started_attributes(
&self,
actor_name: &str,
task_input: &str,
) -> Vec<(&'static str, Value)>;
fn task_completed_attributes(
&self,
task_output: &str,
) -> Vec<(&'static str, Value)>;
fn tool_started_attributes(
&self,
tool_name: &str,
tool_args: &str,
) -> Vec<(&'static str, Value)>;
fn tool_completed_attributes(
&self,
tool_name: &str,
tool_output: &str,
) -> Vec<(&'static str, Value)>;
fn tool_failed_attributes(
&self,
tool_name: &str,
error: &str,
) -> Vec<(&'static str, Value)>;
}Expand description
Provider-specific span attributes for downstream systems.