pub struct OtlpExporter { /* private fields */ }Expand description
Exports AgentForge traces as OpenTelemetry spans to any OTLP-compatible backend (Jaeger, Grafana Tempo, Honeycomb, etc.).
Env vars:
AGENTFORGE_OTEL_ENDPOINT— OTLP HTTP endpoint (default:http://localhost:4318)AGENTFORGE_OTEL_SERVICE_NAME— service name (default:agentforge)
Implementations§
Trait Implementations§
Source§impl TraceExporter for OtlpExporter
impl TraceExporter for OtlpExporter
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 OtlpExporter
impl RefUnwindSafe for OtlpExporter
impl Send for OtlpExporter
impl Sync for OtlpExporter
impl Unpin for OtlpExporter
impl UnsafeUnpin for OtlpExporter
impl UnwindSafe for OtlpExporter
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