-
Couldn't load subscription status.
- Fork 1.1k
misc performance optimizations #7483
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: release-5.8.7
Are you sure you want to change the base?
Conversation
1. Replace chained withFields to use a single WithFields 2. check for debug log enabled before invoking debug logs 3. store request logger in the context to minimize amount of instantiation calls.
|
A JIRA Issue ID is missing from your branch name, PR title and PR description! 🦄 Your branch: performance/debug-log-improvements Your PR title: misc performance optimizations Your PR description: 1. Replace chained withFields to use a single WithFields 2. check for debug log enabled before invoking debug logs 3. store request logger in the context to minimize amount of instantiation calls. DescriptionRelated IssueMotivation and ContextHow This Has Been TestedScreenshots (if appropriate)Types of changes
Checklist
If this is your first time contributing to this repository - welcome! Please refer to jira-lint to get started. Without the JIRA Issue ID in your branch name you would lose out on automatic updates to JIRA via SCM; some GitHub status checks might fail. Valid sample branch names:‣ feature/shiny-new-feature--mojo-10' |
|
API Changes --- prev.txt 2025-10-24 18:50:21.276100781 +0000
+++ current.txt 2025-10-24 18:50:16.932071944 +0000
@@ -7749,6 +7749,7 @@
CacheOptions
OASDefinition
SelfLooping
+ RequestLogger
)
# Package: ./dlpython
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
Enhancement
Description
Add context-cached request logger
Reduce debug log allocations
Use batched WithFields calls
Guard debug logs with level checks
Diagram Walkthrough
File Walkthrough
9 files
Introduce `RequestLogger` context keyAdd getters/setters for request logger in contextCache per-request logger via context utilityGuard debug logs; use context logger in BaseMiddlewareBatch log fields and guard debug timingsBatch fields for structured loggingUse WithFields for error contextConsolidate 404 logs with WithFieldsAdd debug-level guards for start/finish logs