-
Notifications
You must be signed in to change notification settings - Fork 144
Safer Flask teardown request function #75
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
Comments
Thank you for your feedback. Just want to clarify do you mean this method https://github.com/aws/aws-xray-sdk-python/blob/master/aws_xray_sdk/ext/flask/middleware.py#L58 |
Ah no, I'm referring to |
Thank you for the clarification. We will work on a fix soon. |
This is fixed in 2.0.0. |
Thanks |
Uh oh!
There was an error while loading. Please reload this page.
Ref: http://flask.pocoo.org/docs/0.12/reqcontext/#callbacks-and-errors
Flask requests that
teardown_request
function should never fail. The request teardown function implementation in XRay SDK is not robust enough because if before_request is not executed,context.current_segment
would return None. Any operation on the "None" segment would fail.The text was updated successfully, but these errors were encountered: