-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(logging): remove duplicate request_id field in request lifecycle logs #8307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
2af9c9a
1b4218b
aad4fcc
8949acf
2cf649e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -132,8 +132,8 @@ impl Drop for RequestMetricsGuard { | |||||
| self.inflight_requests.dec(); | ||||||
| self.request_duration | ||||||
| .observe(self.start_time.elapsed().as_secs_f64()); | ||||||
| if let Some(request_id) = &self.request_id { | ||||||
| tracing::info!(request_id = %request_id, "request completed"); | ||||||
| if let Some(_) = &self.request_id { | ||||||
| tracing::info!("request completed"); | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
|
|
@@ -178,8 +178,8 @@ where | |||||
| m.request_counter.inc(); | ||||||
| m.inflight_requests.inc(); | ||||||
| m.request_bytes.inc_by(payload.len() as u64); | ||||||
| if let Some(rid) = &request_id { | ||||||
| tracing::info!(request_id = %rid, "request received"); | ||||||
| if let Some(_) = &request_id { | ||||||
| tracing::info!("request received"); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Log level accidentally reverted from Same issue as in the
Suggested change
Was this helpful? React with 👍 or 👎 to provide feedback. |
||||||
| } | ||||||
| RequestMetricsGuard { | ||||||
| inflight_requests: m.inflight_requests.clone(), | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Log level accidentally reverted from
debugtoinfoin Drop implThe immediately preceding commit (
2af9c9aa6e) deliberately downgraded these per-request lifecycle logs frominfotodebug(commit message: "fix(runtime): downgrade per-request lifecycle logs from info to debug"). This commit, which only intends to remove the duplicaterequest_idfield, accidentally changestracing::debug!back totracing::info!. In production with high request volume, this will cause excessive logging at theinfolevel — exactly the problem the previous commit fixed.Was this helpful? React with 👍 or 👎 to provide feedback.