Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 0 additions & 174 deletions src/handlers/http/llm.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/handlers/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ pub mod demo_data;
pub mod health_check;
pub mod ingest;
mod kinesis;
pub mod llm;
pub mod logstream;
pub mod middleware;
pub mod modal;
Expand Down
1 change: 0 additions & 1 deletion src/handlers/http/modal/query_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ impl ParseableServer for QueryServer {
.service(Server::get_users_webscope())
.service(Server::get_dashboards_webscope())
.service(Server::get_filters_webscope())
.service(Server::get_llm_webscope())
.service(Server::get_oauth_webscope())
.service(Server::get_roles_webscope())
.service(Self::get_user_role_webscope())
Expand Down
14 changes: 1 addition & 13 deletions src/handlers/http/modal/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ use tokio::sync::oneshot;

use crate::{
handlers::http::{
self, ingest, llm, logstream,
self, ingest, logstream,
middleware::{DisAllowRootUser, RouteExt},
oidc, role, traces,
},
Expand Down Expand Up @@ -96,7 +96,6 @@ impl ParseableServer for Server {
.service(Self::get_users_webscope())
.service(Self::get_dashboards_webscope())
.service(Self::get_filters_webscope())
.service(Self::get_llm_webscope())
.service(Self::get_oauth_webscope())
.service(Self::get_user_role_webscope())
.service(Self::get_roles_webscope())
Expand Down Expand Up @@ -804,17 +803,6 @@ impl Server {
)
}

// get the llm webscope
pub fn get_llm_webscope() -> Scope {
web::scope("/llm").service(
web::resource("").route(
web::post()
.to(llm::make_llm_request)
.authorize(Action::QueryLLM),
),
)
}

// get the live check
// GET "/liveness" ==> Liveness check as per https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-command
// HEAD "/liveness"
Expand Down
11 changes: 7 additions & 4 deletions src/otel_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ fn build_batch(sequence: u64) -> TelemetryBatch {
kv_string("cloud.region", "us-east-1"),
kv_string("http.method", method),
kv_string("http.url", path),
kv_int("http.status_code", status_code),
kv_int("http.response.status_code", status_code),
kv_string("trace.id", &hex::encode(&trace_id)),
kv_string("span.id", &hex::encode(&root_span_id)),
kv_string("net.peer.ip", &format!("10.0.{}.{}", index + 1, 10 + index)),
Expand Down Expand Up @@ -784,7 +784,7 @@ fn build_service_trace(
),
kv_string("http.method", method),
kv_string("http.url", path),
kv_int("http.status_code", status_code),
kv_int("http.response.status_code", status_code),
kv_string("http.scheme", "https"),
kv_string("http.target", path),
kv_string("http.host", &format!("{service}.internal:8080")),
Expand Down Expand Up @@ -1147,7 +1147,10 @@ fn build_service_trace(
kv_string("http.target", "/v1/charge"),
kv_string("http.flavor", "HTTP/2"),
kv_int("http.request_content_length", 1_024),
kv_int("http.status_code", if is_error { 503 } else { 200 }),
kv_int(
"http.response.status_code",
if is_error { 503 } else { 200 },
),
kv_int("http.response_content_length", 2_048),
kv_string("net.peer.name", "api.stripe.com"),
kv_int("net.peer.port", 443),
Expand Down Expand Up @@ -1511,7 +1514,7 @@ mod tests {
"cloud.region",
"http.method",
"http.url",
"http.status_code",
"http.response.status_code",
"trace.id",
"span.id",
"net.peer.ip",
Expand Down
Loading