- Notifications
You must be signed in to change notification settings - Fork 231
Add starlette ServerErrorMiddleware instrumentation #1674
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
Conversation
🌐 Coverage report
|
I've got a development environment setup from this branch too, I'm taking a look. So far I can see from the DEBUG lines that that edit: further edit: ok, probably last edit for the day: I haven't dug further in than that, maybe this helps you with an "a-ha" moment, but I've definitely been pretty lost in all this |
Yup, ok, I'm pretty sure I fully understand here. The I think this really only leaves us with the option to force ElasticAPM to be the outermost in the |
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.
Nice solution!
What does this pull request do?
Moves the
end_transaction()
into Starlette's ServerErrorMiddleware to solve #1110.Big thanks to @magichair for help figuring this one out.
Related issues
Closes #1110