refactor: update tracing configuration to use span attributes and adjust related handlers

This commit is contained in:
Musa 2026-02-06 11:53:19 -08:00
parent 0e95212416
commit d015b40a2b
7 changed files with 155 additions and 76 deletions

View file

@ -90,7 +90,14 @@ pub struct Overrides {
pub struct Tracing {
pub sampling_rate: Option<f64>,
pub trace_arch_internal: Option<bool>,
pub span_attribute_header_prefixes: Option<Vec<String>>,
pub span_attributes: Option<SpanAttributes>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct SpanAttributes {
pub header_prefixes: Option<Vec<String>>,
#[serde(rename = "static")]
pub static_attributes: Option<HashMap<String, String>>,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash, Default)]