mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
refactor: rename custom_attribute_prefixes to span_attribute_header_prefixes in configuration and related handlers
This commit is contained in:
parent
aa64704ed1
commit
285d011dd6
5 changed files with 5 additions and 5 deletions
|
|
@ -382,7 +382,7 @@ properties:
|
|||
type: integer
|
||||
trace_arch_internal:
|
||||
type: boolean
|
||||
custom_attribute_prefixes:
|
||||
span_attribute_header_prefixes:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -55,5 +55,5 @@ listeners:
|
|||
|
||||
tracing:
|
||||
random_sampling: 100
|
||||
custom_attribute_prefixes:
|
||||
span_attribute_header_prefixes:
|
||||
- x-katanemo-
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue