-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(qe): fix error logging #16287
Merged
Merged
fix(qe): fix error logging #16287
Commits on Nov 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2dba9fa - Browse repository at this point
Copy the full SHA 2dba9faView commit details -
Add support for single point of error logging
In case error logging is enabled in the client, a middleware captures errors and uses the event emitter to notify about them. This way, errors are captured in the same way accross the different engines, by capturing errors one level above in the call stack (at the client level) After this approach is validated, next commits will: - Filter the kind of errors that should be logged - Create the appropriate structure for the logging event being emitted - Add unit tests to check the behavior with the binary engine.
Configuration menu - View commit details
-
Copy full SHA for 3282b23 - Browse repository at this point
Copy the full SHA 3282b23View commit details -
log at the request level instead of through a middleware
Our middleware is FIFO (a queue rather than an actual stack) so the first middleware would call on other middlewares defined by the user before hitting the actual request. As we don't want to observe on users's middleware errors, I moved the logic from a middleware to the point where the request is being made. Also notice we don't want to block on user handling code upon request resolving, so the error handling code runs asynchronously. This has a side effect. If the execution of the program halts, before the promise is resolved in the next event loop tick, then the error won't be logged. This might not be an acceptable trade-off, and I might change it in a follow-up commit.
Configuration menu - View commit details
-
Copy full SHA for 46c958c - Browse repository at this point
Copy the full SHA 46c958cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b1f4bc - Browse repository at this point
Copy the full SHA 3b1f4bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a9d2be - Browse repository at this point
Copy the full SHA 9a9d2beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b15160 - Browse repository at this point
Copy the full SHA 2b15160View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc14e4c - Browse repository at this point
Copy the full SHA fc14e4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 840b010 - Browse repository at this point
Copy the full SHA 840b010View commit details -
Omit error, and instead warn when retrying
Error will flow up the stack and be captured by the RequestHandler
Configuration menu - View commit details
-
Copy full SHA for 15b90ff - Browse repository at this point
Copy the full SHA 15b90ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for ded3d9f - Browse repository at this point
Copy the full SHA ded3d9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f08eb40 - Browse repository at this point
Copy the full SHA f08eb40View commit details -
Configuration menu - View commit details
-
Copy full SHA for f273a6d - Browse repository at this point
Copy the full SHA f273a6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cec72ef - Browse repository at this point
Copy the full SHA cec72efView commit details -
Configuration menu - View commit details
-
Copy full SHA for a786754 - Browse repository at this point
Copy the full SHA a786754View commit details -
Update packages/client/tests/functional/query-error-logging/_matrix.ts
Co-authored-by: Daniel Starns <danielstarns@hotmail.com>
Configuration menu - View commit details
-
Copy full SHA for 87f8a2b - Browse repository at this point
Copy the full SHA 87f8a2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77dc62d - Browse repository at this point
Copy the full SHA 77dc62dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72f7e43 - Browse repository at this point
Copy the full SHA 72f7e43View commit details -
This change is about: 1. getting rid of lastErrorLog, lastRustError, lastPanic state and instead build all the error information when we parse a log line if that's pertinent 2. Let request errors flow up the stack instead to be emitted in the RequestHandler. 3. Only emit events explicitly during lifecycle management of the binary engine
Configuration menu - View commit details
-
Copy full SHA for ef408ae - Browse repository at this point
Copy the full SHA ef408aeView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.