Skip to content

Use new trace interface, remove deprecation warnings#277

Merged
mcelicalderon merged 1 commit intomasterfrom
use-module-based-tracer
Nov 22, 2024
Merged

Use new trace interface, remove deprecation warnings#277
mcelicalderon merged 1 commit intomasterfrom
use-module-based-tracer

Conversation

@mcelicalderon
Copy link
Copy Markdown
Member

@mcelicalderon mcelicalderon commented Nov 18, 2024

Using new module based tracing mechanism to remove deprecation warnings.

Temporarily removing newer ruby versions from the test matrix as apparently some more changes will be needed to support those versions

Resolves #273

@mcelicalderon mcelicalderon force-pushed the use-module-based-tracer branch 4 times, most recently from 948b8d9 to 421a687 Compare November 19, 2024 05:09
@mcelicalderon mcelicalderon force-pushed the use-module-based-tracer branch 2 times, most recently from b1bc6f4 to b3a140e Compare November 21, 2024 04:58
@mcelicalderon mcelicalderon marked this pull request as ready for review November 21, 2024 04:58
Using schema_definition.tracer(self) is deprecated
so we should use the new module based tracing
@mcelicalderon mcelicalderon force-pushed the use-module-based-tracer branch from b3a140e to cd8d861 Compare November 21, 2024 05:03
@mcelicalderon
Copy link
Copy Markdown
Member Author

@00dav00 could you please review? This should also fix master. We can add support for newer ruby versions as a follow-up as apparently this doesn't work out of the box

Copy link
Copy Markdown
Contributor

@00dav00 00dav00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good, just wondering if the there is a way to test the new tracer module 🤔

Comment thread bin/install_bundler.rb
@@ -0,0 +1,11 @@
#!ruby
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually that didn't work in CI. That's why I had to call the script with whatever ruby command is defined in the env.

@mcelicalderon mcelicalderon merged commit 5dcaa80 into master Nov 22, 2024
@mcelicalderon mcelicalderon deleted the use-module-based-tracer branch November 22, 2024 12:58
@mcelicalderon
Copy link
Copy Markdown
Member Author

It looks good, just wondering if the there is a way to test the new tracer module 🤔

Yes, probably. I can also look into that later. Apparently the gql gem will define a new class based on the module and then an instance will be created on every request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Schema.tracer Deprecation Warning

2 participants