pub struct BloopClient { /* private fields */ }Expand description
Bloop error reporting and LLM tracing client.
Uses ureq (blocking HTTP) by default. Enable the async feature
for reqwest-based async transport.
Implementations§
Source§impl BloopClient
impl BloopClient
pub fn builder() -> BloopClientBuilder
Sourcepub fn capture_error(
&self,
error_type: impl Into<String>,
message: impl Into<String>,
)
pub fn capture_error( &self, error_type: impl Into<String>, message: impl Into<String>, )
Convenience: capture just an error type and message.
Sourcepub fn start_trace(&self, name: impl Into<String>) -> Trace
pub fn start_trace(&self, name: impl Into<String>) -> Trace
Start a new LLM trace.
Sourcepub fn send_trace(&self, trace: Trace)
pub fn send_trace(&self, trace: Trace)
Buffer a completed trace for sending.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BloopClient
impl RefUnwindSafe for BloopClient
impl Send for BloopClient
impl Sync for BloopClient
impl Unpin for BloopClient
impl UnwindSafe for BloopClient
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