pub struct SemconvConfig {
pub capture_content: bool,
}Available on crate features
telemetry and genai-semconv only.Expand description
Runtime configuration for semantic convention emission.
Controls opt-in behaviors like content capture that are disabled by default for privacy protection.
§Example
use adk_telemetry::config::SemconvConfig;
// Default: content capture disabled
let config = SemconvConfig::default();
assert!(!config.capture_content);
// Enable content capture for debugging
let debug_config = SemconvConfig { capture_content: true };Fields§
§capture_content: boolWhether to capture prompt/completion content as span events.
Default: false (privacy protection).
When enabled, full prompt and completion text is emitted as span events.
Trait Implementations§
Source§impl Clone for SemconvConfig
impl Clone for SemconvConfig
Source§fn clone(&self) -> SemconvConfig
fn clone(&self) -> SemconvConfig
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 moreSource§impl Debug for SemconvConfig
impl Debug for SemconvConfig
Source§impl Default for SemconvConfig
impl Default for SemconvConfig
Source§fn default() -> SemconvConfig
fn default() -> SemconvConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SemconvConfig
impl RefUnwindSafe for SemconvConfig
impl Send for SemconvConfig
impl Sync for SemconvConfig
impl Unpin for SemconvConfig
impl UnsafeUnpin for SemconvConfig
impl UnwindSafe for SemconvConfig
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