-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Question related to upgrade #4762
Comments
Hey, thanks for asking. I guess my suggestion would be to assume that an application only runs one version of the datadog library, so you could check once to detect which method is supported: # `span_type` was removed in dd-trace-rb 2.0, so check for that:
@span_type_method ||= span.respond_to?(:type=) ? :type= : :span_type=
span.public_send(@span_type_method, "custom") What do you think of that approach? |
👋 @rmosolgo , Thanks for getting back to me.
Hmm... I think such approach might not work properly with
This problem is tricky because there is no version/dependency management between the two gems. I supposed the version detection has to be sitting in |
Yep, that sounds like the nature of a breaking change to me: previously-written code won't work. The other options I see are:
What sounds good to you? Are there other options I've overlooked? |
👍 Thanks for the suggestions.
I will bring the discussion back to our team, but for now I have opened a pull request for the changes in The changes are fairly straightforward and additional test setup can be found at DataDog/dd-trace-rb#3376 Furthermore, I understand that |
I'm game to publish updates to those old graphql-ruby versions. Would you mind opening the backport PRs? You could open PRs against these branches:
And I'll merge them, update the changelog, and publish them to Rubygems 👍 |
👋 @rmosolgo , Thanks! I have opened several PRs to backport (draft PR). However, some of them are failing tests not related to the changes, should I be concerned about them? I am currently discussing with our team for what other stuff, we would like to backport. I will keep you posted when it is ready. 😄 |
👋 @rmosolgo I believe it is ready. After speaking to the team. We would like to backport to
I took this chance and add a couple of additional changes, including
|
Great, I'll review those soon and get those releases out! |
👋 Hi, I am currently working on
dd-trace-rb
at Datadog. I have a question related to upgrading.Currently, I am working on
dd-trace-rb
2.0 upgrade, which contains breaking changes of our public API.This PR removes the deprecated method that is used at here in
graphql-ruby
. If I change tospan.type = 'custom'
ingraphql-ruby
, it is still possible that it breaks application since there is no version/dependency management betweendd-trace-rb
andgraphql-ruby
.I was wondering how would you recommend handling this situation?
The text was updated successfully, but these errors were encountered: