use envoy 1.37 and fix operation name

This commit is contained in:
Adil Hafeez 2026-02-07 13:31:58 -08:00
parent c999b36c41
commit 7d75b340b5
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
3 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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
)
};