From 7d75b340b57bdac8d91fdf76e0145be20d314de2 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Sat, 7 Feb 2026 13:31:58 -0800 Subject: [PATCH] use envoy 1.37 and fix operation name --- Dockerfile | 2 +- config/envoy.template.yaml | 3 +++ crates/brightstaff/src/handlers/llm.rs | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b3313856..92a335ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/config/envoy.template.yaml b/config/envoy.template.yaml index 721a3a7c..aed44dae 100644 --- a/config/envoy.template.yaml +++ b/config/envoy.template.yaml @@ -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 diff --git a/crates/brightstaff/src/handlers/llm.rs b/crates/brightstaff/src/handlers/llm.rs index 5ca97591..8cf42568 100644 --- a/crates/brightstaff/src/handlers/llm.rs +++ b/crates/brightstaff/src/handlers/llm.rs @@ -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 ) };