-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Update opentelemetry dependency #1169
Update opentelemetry dependency #1169
Conversation
Thanks for adding the Here's a preview of the changelog: This release adds support for the latest version of the optional opentelemetry dependency. Here's the preview release card for twitter: Here's the tweet text:
|
@@ -76,7 +76,7 @@ async def resolve(self, _next, root, info, *args, **kwargs): | |||
|
|||
return result | |||
|
|||
with self._tracer.use_span(self._root_span): | |||
with trace.use_span(self._root_span): |
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.
why was this changed? 😊
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.
Looks like it got moved in open-telemetry/opentelemetry-python#1668 🤷
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.
gotcha! thanks for explaing! 😊
pyproject.toml
Outdated
opentelemetry-api = "^0.17b0" | ||
opentelemetry-sdk = "^0.17b0" | ||
opentelemetry-api = "^1.4.1" | ||
opentelemetry-sdk = "^1.4.1" |
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.
I guess this might be an annoying upgrade for anyone who is using opentelemetry==0.17b0
?
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.
it could be, maybe we can handle both versions? we only have two places where we had to change our code, so maybe we can do it
Codecov Report
@@ Coverage Diff @@
## main #1169 +/- ##
==========================================
- Coverage 97.53% 97.44% -0.09%
==========================================
Files 87 87
Lines 3286 3291 +5
Branches 472 473 +1
==========================================
+ Hits 3205 3207 +2
- Misses 44 46 +2
- Partials 37 38 +1 |
Something like this? I'm not sure how to specify the version to allow the |
mhm, we could allow any version before 2? |
I think that still installs |
@joefreeman sounds good to me 😊 thanks! |
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.
💯
Description
This updates the (optional)
opentelemetry
dependency from0.17b0
to1.4.1
.Types of Changes
Checklist