refactor: rename custom_attribute_prefixes to span_attribute_header_prefixes in configuration and related handlers

This commit is contained in:
Musa 2026-02-06 09:33:13 -08:00
parent aa64704ed1
commit 285d011dd6
No known key found for this signature in database
5 changed files with 5 additions and 5 deletions

View file

@ -382,7 +382,7 @@ properties:
type: integer
trace_arch_internal:
type: boolean
custom_attribute_prefixes:
span_attribute_header_prefixes:
type: array
items:
type: string

View file

@ -188,7 +188,7 @@ async fn handle_agent_chat(
tracing_config
.as_ref()
.as_ref()
.and_then(|tracing| tracing.custom_attribute_prefixes.as_deref()),
.and_then(|tracing| tracing.span_attribute_header_prefixes.as_deref()),
);
let chat_request_bytes = request.collect().await?.to_bytes();

View file

@ -53,7 +53,7 @@ pub async fn llm_chat(
tracing_config
.as_ref()
.as_ref()
.and_then(|tracing| tracing.custom_attribute_prefixes.as_deref()),
.and_then(|tracing| tracing.span_attribute_header_prefixes.as_deref()),
);
let request_id: String = match request_headers
.get(REQUEST_ID_HEADER)

View file

@ -90,7 +90,7 @@ pub struct Overrides {
pub struct Tracing {
pub sampling_rate: Option<f64>,
pub trace_arch_internal: Option<bool>,
pub custom_attribute_prefixes: Option<Vec<String>>,
pub span_attribute_header_prefixes: Option<Vec<String>>,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash, Default)]

View file

@ -55,5 +55,5 @@ listeners:
tracing:
random_sampling: 100
custom_attribute_prefixes:
span_attribute_header_prefixes:
- x-katanemo-