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 'uninitialized constant GRPC::Interceptor' when with the 'gapic-common' gem #2649

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Feb 27, 2023

This PR fixes the error

Failed to apply Datadog::Tracing::Contrib::GRPC::Patcher patch. Cause: uninitialized constant GRPC::Interceptor

when gRPC was partially loaded.

This has been reported to us by users of the Google Calendar User Availability API gem. That gem is not publicly available yet, but its dependency on the public gapic-common gem is where the issue lies, allowing us to address this issue.

gapic-common only loads a couple file from gPRC, which only contain constants and error classes.

There's nothing of value to instrument if only such subset of gPRC is loaded.

This PR ensures we check for the presence of the relevant gPRC client and server files that we actually have an instrumentation point.

@marcotc marcotc requested a review from a team February 27, 2023 19:48
@github-actions github-actions bot added integrations Involves tracing integrations tracing labels Feb 27, 2023
Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@marcotc marcotc merged commit 0e7c257 into master Mar 3, 2023
@marcotc marcotc deleted the fix-grcp-common branch March 3, 2023 18:54
@github-actions github-actions bot added this to the 1.10.0 milestone Mar 3, 2023
@TonyCTHsu TonyCTHsu mentioned this pull request Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrations Involves tracing integrations tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants