Skip to content
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

Conversation

v1v
Copy link
Contributor

@v1v v1v commented Oct 6, 2022

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 with opentelemetry-api 1.13, if that's even possible...

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/callback/opentelemetry.py

ADDITIONAL INFORMATION

Closes #5315

Comment on lines 143 to 144
if OTEL_LIBRARY_TIME_NS_ERROR:
self.start = int(time.time() * 1e9)
Copy link
Contributor Author

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

@v1v v1v mentioned this pull request Oct 6, 2022
1 task
@ansibullbot ansibullbot added bug This issue/PR relates to a bug callback callback plugin has_issue plugins plugin (any type) labels Oct 6, 2022
@v1v
Copy link
Contributor Author

v1v commented Oct 6, 2022

I tested it out in my local instance and it worked as expected

@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Oct 6, 2022
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-4 labels Oct 8, 2022
Copy link
Collaborator

@felixfontein felixfontein left a 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!

plugins/callback/opentelemetry.py Outdated Show resolved Hide resolved
…api-1.13.yml

Co-authored-by: Felix Fontein <felix@fontein.de>
@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Oct 10, 2022
Copy link
Collaborator

@russoz russoz left a 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.

plugins/callback/opentelemetry.py Outdated Show resolved Hide resolved
v1v and others added 2 commits October 16, 2022 10:58
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
@ansibullbot ansibullbot added needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Oct 16, 2022
@ansibullbot ansibullbot removed the needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI label Oct 16, 2022
@github-actions
Copy link

github-actions bot commented Oct 16, 2022

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@ansibullbot

This comment was marked as outdated.

Co-authored-by: Felix Fontein <felix@fontein.de>
This was referenced Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug callback callback plugin has_issue needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for opentelemetry-api 1.13.0
4 participants