Tracer
Defined in the trace module.Rust AI Agent SDK Global tracer for convenience.
Fields
| Name | Type | Description |
|---|---|---|
traces | Arc<RwLock<HashMap<String | Active traces |
exporters | Arc<RwLock<Vec<Box<dyn TraceExporter>>>> | Exporters |
Methods
new
add_exporter
| Name | Type |
|---|---|
exporter | impl TraceExporter + 'static |
start_trace
| Name | Type |
|---|---|
name | impl Into<String> |
end_trace
| Name | Type |
|---|---|
trace_id | &str |
start_span
| Name | Type |
|---|---|
trace_id | &str |
name | impl Into<String> |
kind | SpanKind |
end_span
| Name | Type |
|---|---|
trace_id | &str |
span_id | &str |
trace_count
Source
View on GitHub
praisonai/src/trace/mod.rs at line 382
