-
Notifications
You must be signed in to change notification settings - Fork 143
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
httplib patcher: AttributeError: 'HTTPResponse' object has no attribute '_xray_prop' #48
Comments
We will look at this issue as soon as possible. It looks like you patched |
I'm using
The caller code is actually not mine, using |
I see. From the stack trace We will release a bug fix. With the fix you will not get this error. But you won't see the http roundtrip time since |
Thank you @haotianw465, I can reproduce the error quite easily so let me know if you want a patch tested. |
Though I don't know how you are using xray_data = getattr(instance, _XRAY_PROP, None)
if not xray_data:
return wrapped(*args, **kwargs) it should work, assuming you have write access to change this file in place. |
Confirmed that this patch works. I see that httplib still gets patched:
But instead of crashing I get the expected warning:
|
Cool. We will roll out this fix in the next release as soon as possible, though we cannot provide an exact date. In the meantime if your application doesn't have direct dependency on |
This issue has been fixed in the latest v1.0 release. |
AWS Xray SDK errors out when executed outside of segment/subsegment
Expected behavior warn but do not fail on this error.
The text was updated successfully, but these errors were encountered: