Skip to content

Conversation

@xuanduc987
Copy link
Contributor

@xuanduc987 xuanduc987 commented Oct 24, 2025

I think this should fix #127

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 24, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

end

def patch
return if gem_version < Gem::Version.new('2.1.8')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The target of the patch, Dataloader#spawn_fiber method existed from version 2.1.8

Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally we would have some automated tests that test this functionality to avoid regressions.

@rmosolgo do you have any recommendations on how to set up a test to cover this?

Copy link
Contributor Author

@xuanduc987 xuanduc987 Oct 24, 2025

Choose a reason for hiding this comment

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

I had added a test for the expected behavior of #spawn_fiber.
I also confirmed that it failed without the patch.

@arielvalentin
Copy link
Contributor

cc: @rmosolgo Request for review

@rmosolgo
Copy link
Contributor

LGTM 👍

@arielvalentin arielvalentin changed the title [GraphQL] fix: patch dataloader to propagate context to new fiber fix: patch dataloader to propagate context to new fiber Oct 24, 2025
@arielvalentin arielvalentin enabled auto-merge (squash) October 26, 2025 15:48
@arielvalentin arielvalentin merged commit d907396 into open-telemetry:main Oct 26, 2025
64 checks passed
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.

GraphQL dataloaders not compatible with opentelemetry tracing plugin

3 participants