Skip to content

Commit e3a23e7

Browse files
authored
Remove CI system detection (#9643)
This was interesting when we were still routing the download traffic through our API servers, but this is no longer the case, so there is very little point in still running this detection for each request.
1 parent 32e8891 commit e3a23e7

File tree

6 files changed

+1
-77
lines changed

6 files changed

+1
-77
lines changed

.github/renovate.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
groupName: "diesel packages",
6363
},
6464
{
65-
matchDepNames: ["aws-ip-ranges", "github-meta"],
65+
matchDepNames: ["aws-ip-ranges"],
6666
automerge: true,
6767
},
6868
{

Cargo.lock

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ diesel_migrations = { version = "=2.2.0", features = ["postgres"] }
7070
dotenvy = "=0.15.7"
7171
flate2 = "=1.0.34"
7272
futures-util = "=0.3.31"
73-
github-meta = "=0.11.0"
7473
hex = "=0.4.3"
7574
http = "=1.1.0"
7675
http-body-util = "=0.1.2"

src/ci.rs

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

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ mod app;
3333
pub mod auth;
3434
pub mod boot;
3535
pub mod certs;
36-
pub mod ci;
3736
pub mod cloudfront;
3837
pub mod config;
3938
pub mod controllers;

src/middleware/log_request.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Log all requests in a format similar to Heroku's router, but with additional
22
//! information that we care about like User-Agent
33
4-
use crate::ci::CiService;
54
use crate::controllers::util::RequestPartsExt;
65
use crate::headers::XRequestId;
76
use crate::middleware::normalize_path::OriginalPath;
@@ -36,7 +35,6 @@ pub struct RequestMetadata {
3635
real_ip: Extension<RealIp>,
3736
user_agent: Option<TypedHeader<UserAgent>>,
3837
request_id: Option<TypedHeader<XRequestId>>,
39-
ci_service: Option<CiService>,
4038
}
4139

4240
pub async fn log_requests(
@@ -87,7 +85,6 @@ pub async fn log_requests(
8785
http.status_code = status.as_u16(),
8886
cause = response.extensions().get::<CauseField>().map(|e| e.0.as_str()).unwrap_or_default(),
8987
error.message = response.extensions().get::<ErrorField>().map(|e| e.0.as_str()).unwrap_or_default(),
90-
ci = %request_metadata.ci_service.map(|ci| ci.to_string()).unwrap_or_default(),
9188
%custom_metadata,
9289
"{method} {url} → {status} ({duration:?})",
9390
);

0 commit comments

Comments
 (0)