-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[opentelemetry][callback] support opentelemetry-api 1.13 #5342
[opentelemetry][callback] support opentelemetry-api 1.13 #5342
Conversation
plugins/callback/opentelemetry.py
Outdated
if OTEL_LIBRARY_TIME_NS_ERROR: | ||
self.start = int(time.time() * 1e9) |
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.
This case should not happen IIUC, since python 3.6 is not supported in opentelemetry-api 1.13
, but better play safe
I tested it out in my local instance and it worked as expected |
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.
Thanks for your contribution!
changelogs/fragments/5342-opentelemetry_bug_fix_opentelemetry-api-1.13.yml
Outdated
Show resolved
Hide resolved
…api-1.13.yml Co-authored-by: Felix Fontein <felix@fontein.de>
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.
hi @v1v thanks for the contribution! I left a small improvement suggestion, but other than that, LGTM.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Felix Fontein <felix@fontein.de>
SUMMARY
opentelemetry-api 1.13
removed support for_time_ns
, this change will allow to fallback to the previous implementation of synthetically creating a time_ns when using <=python 3.6
withopentelemetry-api 1.13
, if that's even possible...ISSUE TYPE
COMPONENT NAME
plugins/callback/opentelemetry.py
ADDITIONAL INFORMATION
Closes #5315