pub struct LangfuseCallback { /* private fields */ }Expand description
Callback handler that sends Synaptic run events to Langfuse.
Implementations§
Source§impl LangfuseCallback
impl LangfuseCallback
Sourcepub async fn new(config: LangfuseConfig) -> Result<Self, SynapticError>
pub async fn new(config: LangfuseConfig) -> Result<Self, SynapticError>
Create a new Langfuse callback.
Sourcepub async fn flush(&self) -> Result<(), SynapticError>
pub async fn flush(&self) -> Result<(), SynapticError>
Flush buffered events to the Langfuse ingestion API.
Trait Implementations§
Source§impl CallbackHandler for LangfuseCallback
impl CallbackHandler for LangfuseCallback
Auto Trait Implementations§
impl Freeze for LangfuseCallback
impl !RefUnwindSafe for LangfuseCallback
impl Send for LangfuseCallback
impl Sync for LangfuseCallback
impl Unpin for LangfuseCallback
impl UnsafeUnpin for LangfuseCallback
impl !UnwindSafe for LangfuseCallback
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