pub struct TelemetrySettings {
pub service_name: Option<String>,
pub sample_ratio: Option<f64>,
pub capture_content: Option<bool>,
pub traces: TelemetrySignalSettings,
pub metrics: TelemetrySignalSettings,
pub otlp: OtlpTelemetrySettings,
}Expand description
One settings layer’s OpenTelemetry configuration. Every field is optional: a field left unset inherits the value from lower-precedence settings layers and falls back to its documented default when no layer sets it. Read resolved values through the accessor methods.
Fields§
§service_name: Option<String>service.name resource attribute. Defaults to aether.
sample_ratio: Option<f64>Trace sampling ratio between 0.0 and 1.0. Defaults to 1.0.
capture_content: Option<bool>Whether prompt, response, reasoning, and tool argument content is
exported. Defaults to false.
traces: TelemetrySignalSettingsTrace signal toggle. Enabled by default.
metrics: TelemetrySignalSettingsMetric signal toggle. Enabled by default.
otlp: OtlpTelemetrySettingsImplementations§
Source§impl TelemetrySettings
impl TelemetrySettings
pub fn effective_enabled(&self) -> bool
pub fn service_name(&self) -> &str
pub fn sample_ratio(&self) -> f64
pub fn capture_content(&self) -> bool
pub fn traces_enabled(&self) -> bool
pub fn metrics_enabled(&self) -> bool
Trait Implementations§
Source§impl Clone for TelemetrySettings
impl Clone for TelemetrySettings
Source§fn clone(&self) -> TelemetrySettings
fn clone(&self) -> TelemetrySettings
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 TelemetrySettings
impl Debug for TelemetrySettings
Source§impl Default for TelemetrySettings
impl Default for TelemetrySettings
Source§fn default() -> TelemetrySettings
fn default() -> TelemetrySettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelemetrySettings
impl<'de> Deserialize<'de> for TelemetrySettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for TelemetrySettings
impl JsonSchema for TelemetrySettings
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TelemetrySettings
impl PartialEq for TelemetrySettings
Source§impl Serialize for TelemetrySettings
impl Serialize for TelemetrySettings
impl StructuralPartialEq for TelemetrySettings
Auto Trait Implementations§
impl Freeze for TelemetrySettings
impl RefUnwindSafe for TelemetrySettings
impl Send for TelemetrySettings
impl Sync for TelemetrySettings
impl Unpin for TelemetrySettings
impl UnsafeUnpin for TelemetrySettings
impl UnwindSafe for TelemetrySettings
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