pub struct TelemetryConfig { /* private fields */ }Expand description
Explicit, in-code configuration for inference telemetry.
Message capture is off by default. Input and output capture are independent,
bounded controls. AgentKit never reads
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT.
Implementations§
Source§impl TelemetryConfig
impl TelemetryConfig
Sourcepub fn with_input_messages(self, capture: MessageCapture) -> Self
pub fn with_input_messages(self, capture: MessageCapture) -> Self
Enables bounded input-message capture.
Sourcepub fn with_output_messages(self, capture: MessageCapture) -> Self
pub fn with_output_messages(self, capture: MessageCapture) -> Self
Enables bounded output-message capture.
Sourcepub fn without_input_messages(self) -> Self
pub fn without_input_messages(self) -> Self
Disables input-message capture.
Sourcepub fn without_output_messages(self) -> Self
pub fn without_output_messages(self) -> Self
Disables output-message capture.
Sourcepub fn input_messages(self) -> Option<MessageCapture>
pub fn input_messages(self) -> Option<MessageCapture>
Returns the input capture configuration, if enabled.
Sourcepub fn output_messages(self) -> Option<MessageCapture>
pub fn output_messages(self) -> Option<MessageCapture>
Returns the output capture configuration, if enabled.
Trait Implementations§
Source§impl Clone for TelemetryConfig
impl Clone for TelemetryConfig
Source§fn clone(&self) -> TelemetryConfig
fn clone(&self) -> TelemetryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TelemetryConfig
Source§impl Debug for TelemetryConfig
impl Debug for TelemetryConfig
Source§impl Default for TelemetryConfig
impl Default for TelemetryConfig
Source§fn default() -> TelemetryConfig
fn default() -> TelemetryConfig
Returns the “default value” for a type. Read more
impl Eq for TelemetryConfig
Source§impl PartialEq for TelemetryConfig
impl PartialEq for TelemetryConfig
impl StructuralPartialEq for TelemetryConfig
Auto Trait Implementations§
impl Freeze for TelemetryConfig
impl RefUnwindSafe for TelemetryConfig
impl Send for TelemetryConfig
impl Sync for TelemetryConfig
impl Unpin for TelemetryConfig
impl UnsafeUnpin for TelemetryConfig
impl UnwindSafe for TelemetryConfig
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