mirror of
https://github.com/katanemo/plano.git
synced 2026-06-20 15:28:07 +02:00
refactor: update tracing configuration to use span attributes and adjust related handlers
This commit is contained in:
parent
0e95212416
commit
d015b40a2b
7 changed files with 155 additions and 76 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue