mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
use envoy 1.37 and fix operation name
This commit is contained in:
parent
c999b36c41
commit
7d75b340b5
3 changed files with 6 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ COPY crates .
|
|||
RUN cargo build --release --target wasm32-wasip1 -p prompt_gateway -p llm_gateway
|
||||
RUN cargo build --release -p brightstaff
|
||||
|
||||
FROM docker.io/envoyproxy/envoy:v1.36.4 AS envoy
|
||||
FROM docker.io/envoyproxy/envoy:v1.37.0 AS envoy
|
||||
|
||||
FROM python:3.13.6-slim AS arch
|
||||
# Purge PAM to avoid CVE-2025-6020 and install needed tools
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ static_resources:
|
|||
service_name: plano(inbound)
|
||||
random_sampling:
|
||||
value: {{ arch_tracing.random_sampling }}
|
||||
operation: "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
|
||||
{% endif %}
|
||||
stat_prefix: plano(inbound)
|
||||
codec_type: AUTO
|
||||
|
|
@ -303,6 +304,7 @@ static_resources:
|
|||
service_name: plano(inbound)
|
||||
random_sampling:
|
||||
value: {{ arch_tracing.random_sampling }}
|
||||
operation: "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
|
||||
{% endif %}
|
||||
stat_prefix: {{ listener.name | replace(" ", "_") }}_traffic
|
||||
codec_type: AUTO
|
||||
|
|
@ -402,6 +404,7 @@ static_resources:
|
|||
service_name: plano(outbound)
|
||||
random_sampling:
|
||||
value: {{ arch_tracing.random_sampling }}
|
||||
operation: "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
|
||||
{% endif %}
|
||||
stat_prefix: egress_traffic
|
||||
codec_type: AUTO
|
||||
|
|
|
|||
|
|
@ -316,10 +316,10 @@ async fn llm_chat_inner(
|
|||
|
||||
get_active_span(|span| {
|
||||
let span_name = if model_from_request == resolved_model {
|
||||
format!("(llm) {} {}", request_path, resolved_model)
|
||||
format!("POST {} {}", request_path, resolved_model)
|
||||
} else {
|
||||
format!(
|
||||
"(llm) {} {} -> {}",
|
||||
"POST {} {} -> {}",
|
||||
request_path, model_from_request, resolved_model
|
||||
)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue