pub struct OTelMetricsCollector { /* private fields */ }Expand description
OpenTelemetry-based metrics collector using histogram instruments.
Creates OTel histograms for the GenAI semantic convention metrics.
Implementations§
Trait Implementations§
Source§impl Debug for OTelMetricsCollector
impl Debug for OTelMetricsCollector
Source§impl MetricsCollector for OTelMetricsCollector
impl MetricsCollector for OTelMetricsCollector
Source§fn record_token_usage(
&self,
input_tokens: u64,
output_tokens: u64,
attributes: &HashMap<String, String>,
) -> BoxFuture<'_, ()>
fn record_token_usage( &self, input_tokens: u64, output_tokens: u64, attributes: &HashMap<String, String>, ) -> BoxFuture<'_, ()>
Records token usage (input and output tokens).
Auto Trait Implementations§
impl Freeze for OTelMetricsCollector
impl !RefUnwindSafe for OTelMetricsCollector
impl Send for OTelMetricsCollector
impl Sync for OTelMetricsCollector
impl Unpin for OTelMetricsCollector
impl UnsafeUnpin for OTelMetricsCollector
impl !UnwindSafe for OTelMetricsCollector
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