Skip to content

Commit 03a85dd

Browse files
deprecate llm api and related code (#1755)
1 parent e3295bc commit 03a85dd

5 files changed

Lines changed: 8 additions & 193 deletions

File tree

‎src/handlers/http/llm.rs‎

Lines changed: 0 additions & 174 deletions
This file was deleted.

‎src/handlers/http/mod.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ pub mod demo_data;
4040
pub mod health_check;
4141
pub mod ingest;
4242
mod kinesis;
43-
pub mod llm;
4443
pub mod logstream;
4544
pub mod middleware;
4645
pub mod modal;

‎src/handlers/http/modal/query_server.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ impl ParseableServer for QueryServer {
6868
.service(Server::get_users_webscope())
6969
.service(Server::get_dashboards_webscope())
7070
.service(Server::get_filters_webscope())
71-
.service(Server::get_llm_webscope())
7271
.service(Server::get_oauth_webscope())
7372
.service(Server::get_roles_webscope())
7473
.service(Self::get_user_role_webscope())

‎src/handlers/http/modal/server.rs‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ use tokio::sync::oneshot;
6262

6363
use crate::{
6464
handlers::http::{
65-
self, ingest, llm, logstream,
65+
self, ingest, logstream,
6666
middleware::{DisAllowRootUser, RouteExt},
6767
oidc, role, traces,
6868
},
@@ -96,7 +96,6 @@ impl ParseableServer for Server {
9696
.service(Self::get_users_webscope())
9797
.service(Self::get_dashboards_webscope())
9898
.service(Self::get_filters_webscope())
99-
.service(Self::get_llm_webscope())
10099
.service(Self::get_oauth_webscope())
101100
.service(Self::get_user_role_webscope())
102101
.service(Self::get_roles_webscope())
@@ -804,17 +803,6 @@ impl Server {
804803
)
805804
}
806805

807-
// get the llm webscope
808-
pub fn get_llm_webscope() -> Scope {
809-
web::scope("/llm").service(
810-
web::resource("").route(
811-
web::post()
812-
.to(llm::make_llm_request)
813-
.authorize(Action::QueryLLM),
814-
),
815-
)
816-
}
817-
818806
// get the live check
819807
// GET "/liveness" ==> Liveness check as per https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-command
820808
// HEAD "/liveness"

‎src/otel_generator.rs‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ fn build_batch(sequence: u64) -> TelemetryBatch {
481481
kv_string("cloud.region", "us-east-1"),
482482
kv_string("http.method", method),
483483
kv_string("http.url", path),
484-
kv_int("http.status_code", status_code),
484+
kv_int("http.response.status_code", status_code),
485485
kv_string("trace.id", &hex::encode(&trace_id)),
486486
kv_string("span.id", &hex::encode(&root_span_id)),
487487
kv_string("net.peer.ip", &format!("10.0.{}.{}", index + 1, 10 + index)),
@@ -784,7 +784,7 @@ fn build_service_trace(
784784
),
785785
kv_string("http.method", method),
786786
kv_string("http.url", path),
787-
kv_int("http.status_code", status_code),
787+
kv_int("http.response.status_code", status_code),
788788
kv_string("http.scheme", "https"),
789789
kv_string("http.target", path),
790790
kv_string("http.host", &format!("{service}.internal:8080")),
@@ -1147,7 +1147,10 @@ fn build_service_trace(
11471147
kv_string("http.target", "/v1/charge"),
11481148
kv_string("http.flavor", "HTTP/2"),
11491149
kv_int("http.request_content_length", 1_024),
1150-
kv_int("http.status_code", if is_error { 503 } else { 200 }),
1150+
kv_int(
1151+
"http.response.status_code",
1152+
if is_error { 503 } else { 200 },
1153+
),
11511154
kv_int("http.response_content_length", 2_048),
11521155
kv_string("net.peer.name", "api.stripe.com"),
11531156
kv_int("net.peer.port", 443),
@@ -1511,7 +1514,7 @@ mod tests {
15111514
"cloud.region",
15121515
"http.method",
15131516
"http.url",
1514-
"http.status_code",
1517+
"http.response.status_code",
15151518
"trace.id",
15161519
"span.id",
15171520
"net.peer.ip",

0 commit comments

Comments
 (0)