mirror of
https://github.com/katanemo/plano.git
synced 2026-06-29 15:49:40 +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 --target wasm32-wasip1 -p prompt_gateway -p llm_gateway
|
||||||
RUN cargo build --release -p brightstaff
|
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
|
FROM python:3.13.6-slim AS arch
|
||||||
# Purge PAM to avoid CVE-2025-6020 and install needed tools
|
# Purge PAM to avoid CVE-2025-6020 and install needed tools
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ static_resources:
|
||||||
service_name: plano(inbound)
|
service_name: plano(inbound)
|
||||||
random_sampling:
|
random_sampling:
|
||||||
value: {{ arch_tracing.random_sampling }}
|
value: {{ arch_tracing.random_sampling }}
|
||||||
|
operation: "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
stat_prefix: plano(inbound)
|
stat_prefix: plano(inbound)
|
||||||
codec_type: AUTO
|
codec_type: AUTO
|
||||||
|
|
@ -303,6 +304,7 @@ static_resources:
|
||||||
service_name: plano(inbound)
|
service_name: plano(inbound)
|
||||||
random_sampling:
|
random_sampling:
|
||||||
value: {{ arch_tracing.random_sampling }}
|
value: {{ arch_tracing.random_sampling }}
|
||||||
|
operation: "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
stat_prefix: {{ listener.name | replace(" ", "_") }}_traffic
|
stat_prefix: {{ listener.name | replace(" ", "_") }}_traffic
|
||||||
codec_type: AUTO
|
codec_type: AUTO
|
||||||
|
|
@ -402,6 +404,7 @@ static_resources:
|
||||||
service_name: plano(outbound)
|
service_name: plano(outbound)
|
||||||
random_sampling:
|
random_sampling:
|
||||||
value: {{ arch_tracing.random_sampling }}
|
value: {{ arch_tracing.random_sampling }}
|
||||||
|
operation: "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
stat_prefix: egress_traffic
|
stat_prefix: egress_traffic
|
||||||
codec_type: AUTO
|
codec_type: AUTO
|
||||||
|
|
|
||||||
|
|
@ -316,10 +316,10 @@ async fn llm_chat_inner(
|
||||||
|
|
||||||
get_active_span(|span| {
|
get_active_span(|span| {
|
||||||
let span_name = if model_from_request == resolved_model {
|
let span_name = if model_from_request == resolved_model {
|
||||||
format!("(llm) {} {}", request_path, resolved_model)
|
format!("POST {} {}", request_path, resolved_model)
|
||||||
} else {
|
} else {
|
||||||
format!(
|
format!(
|
||||||
"(llm) {} {} -> {}",
|
"POST {} {} -> {}",
|
||||||
request_path, model_from_request, resolved_model
|
request_path, model_from_request, resolved_model
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue