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

Fix skip_tracing compatibility #74

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Conversation

swalkinshaw
Copy link
Contributor

Trace#initialize was incorrectly assuming that a @Query or @multiplex was always defined. However, tracers can be instantiated manually outside of a Query context (at least to start with).

@swalkinshaw swalkinshaw force-pushed the fix-skip-tracing-compatibility branch 3 times, most recently from 2d61b78 to a2ce16c Compare April 11, 2023 19:15
@swalkinshaw swalkinshaw requested a review from a team April 11, 2023 19:17
Copy link
Contributor

@IDolgirev IDolgirev left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

Copy link
Contributor

@larry-reid-shopify larry-reid-shopify left a comment

Choose a reason for hiding this comment

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

LGTM

lib/graphql/metrics/trace.rb Outdated Show resolved Hide resolved
@swalkinshaw swalkinshaw force-pushed the fix-skip-tracing-compatibility branch from a2ce16c to a5909d8 Compare April 11, 2023 20:16
`Trace#initialize` was incorrectly assuming that a `@Query` or
`@multiplex` was always defined. However, tracers can be instantiated
manually outside of a Query context (at least to start with).
@swalkinshaw swalkinshaw force-pushed the fix-skip-tracing-compatibility branch from a5909d8 to f7ad833 Compare April 12, 2023 13:39
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.

None yet

5 participants