pub struct LangSmithExporter { /* private fields */ }Expand description
Exports traces to LangSmith’s Runs API.
Env vars:
LANGSMITH_API_KEY— LangSmith API keyLANGSMITH_PROJECT— project name (default:agentforge)LANGSMITH_API_URL— API base URL (default:https://api.smith.langchain.com)
Implementations§
Trait Implementations§
Source§impl TraceExporter for LangSmithExporter
impl TraceExporter for LangSmithExporter
Source§fn export<'life0, 'life1, 'async_trait>(
&'life0 self,
trace: &'life1 Trace,
) -> Pin<Box<dyn Future<Output = Result<(), ExporterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export<'life0, 'life1, 'async_trait>(
&'life0 self,
trace: &'life1 Trace,
) -> Pin<Box<dyn Future<Output = Result<(), ExporterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Export a single trace to the backend.
Source§fn export_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
traces: &'life1 [Trace],
) -> Pin<Box<dyn Future<Output = Vec<Result<(), ExporterError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
traces: &'life1 [Trace],
) -> Pin<Box<dyn Future<Output = Vec<Result<(), ExporterError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Export a batch of traces (default: loop over
export).Auto Trait Implementations§
impl Freeze for LangSmithExporter
impl !RefUnwindSafe for LangSmithExporter
impl Send for LangSmithExporter
impl Sync for LangSmithExporter
impl Unpin for LangSmithExporter
impl UnsafeUnpin for LangSmithExporter
impl !UnwindSafe for LangSmithExporter
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