Skip to content

Commit

Permalink
Add an informational backend route for / (#32699)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 45e318e24b8624c43447b6a81e83416b84df3e2b
  • Loading branch information
goffrie authored and Convex, Inc. committed Jan 2, 2025
1 parent d763b69 commit 1e4f23f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/common/src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,11 @@ async fn log_middleware(
let content_type = get_header(resp.headers(), http::header::CONTENT_TYPE);

let path = uri.path();
if path == "/instance_version" || path == "/instance_name" || path == "/get_backend_info" {
if path == "/instance_version"
|| path == "/instance_name"
|| path == "/get_backend_info"
|| path == "/"
{
// Skip logging for these high volume, less useful endpoints
return Ok(resp);
}
Expand Down

0 comments on commit 1e4f23f

Please sign in to comment.