pub struct OtelExporter { /* private fields */ }Expand description
Exports GenAI spans for LLM HTTP exchanges via OTLP/HTTP (JSON).
Implementations§
Source§impl OtelExporter
impl OtelExporter
Sourcepub fn new(endpoint: Option<String>, capture_content: bool) -> Self
pub fn new(endpoint: Option<String>, capture_content: bool) -> Self
Create an exporter. endpoint is the OTLP/HTTP base (e.g.
http://collector:4318); when None, OTEL_EXPORTER_OTLP_ENDPOINT is
honored, falling back to http://localhost:4318. A full traces endpoint
in OTEL_EXPORTER_OTLP_TRACES_ENDPOINT takes precedence and is used as-is.
Trait Implementations§
Source§impl ViewSink for OtelExporter
impl ViewSink for OtelExporter
fn llm_call(&mut self, call: &LlmCallRow) -> ViewResult<()>
fn token_usage(&mut self, _row: &TokenUsageRow) -> ViewResult<()>
fn audit_event(&mut self, _row: &AuditEventRow) -> ViewResult<()>
fn process_node(&mut self, _row: &ProcessNodeRow) -> ViewResult<()>
fn tool_call(&mut self, _row: &ToolCallRow) -> ViewResult<()>
fn network_target(&mut self, _row: &NetworkTargetRow) -> ViewResult<()>
fn resource_sample(&mut self, _row: &ResourceSampleRow) -> ViewResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for OtelExporter
impl !UnwindSafe for OtelExporter
impl Freeze for OtelExporter
impl Send for OtelExporter
impl Sync for OtelExporter
impl Unpin for OtelExporter
impl UnsafeUnpin for OtelExporter
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