pub struct TraceStore { /* private fields */ }Expand description
SQLite-backed trace store. Cheap to clone — wraps an Arc<Mutex<Connection>>.
Implementations§
Source§impl TraceStore
impl TraceStore
Sourcepub fn open(path: PathBuf) -> Result<Self>
pub fn open(path: PathBuf) -> Result<Self>
Open (or create) the trace store at a specific path.
Sourcepub fn open_in_memory() -> Result<Self>
pub fn open_in_memory() -> Result<Self>
Open an in-memory store (tests / ephemeral use).
Sourcepub async fn open_span(
&self,
conversation_id: &str,
kind: &str,
name: &str,
args_hash: Option<&str>,
session_id: Option<&str>,
) -> Result<String>
pub async fn open_span( &self, conversation_id: &str, kind: &str, name: &str, args_hash: Option<&str>, session_id: Option<&str>, ) -> Result<String>
Open a span (tool-call or model-call). Returns the new span id.
args_hash should be Some(hash_args(&input)) for tool-call spans and
None for model-call spans.
Trait Implementations§
Source§impl Clone for TraceStore
impl Clone for TraceStore
Source§fn clone(&self) -> TraceStore
fn clone(&self) -> TraceStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TraceStore
impl !UnwindSafe for TraceStore
impl Freeze for TraceStore
impl Send for TraceStore
impl Sync for TraceStore
impl Unpin for TraceStore
impl UnsafeUnpin for TraceStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more