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

Add warning log if an integration is incompatible #722

Conversation

ericmustin
Copy link
Contributor

Addresses #457 . If an integration fails to get patched due to an incompatibility (generally a version issue) there is no indication of this and the tracing will just fail silently.

  • Per discussion of remediation options in the open issue, this PR adds a conditional WARN log on the patch method if the integration is incompatible. I used class.name here to refer to the integration but if there is a more appropriate way to do so please let me know.

  • Also updates patchable_spec.rb to reflect new logging behavior using the conventions seen elsewhere in the spec.

Thanks for taking a look! Let me know if there's any feedback, happy to address anything or open to ideas if there's a better way to approach this!

@ericmustin ericmustin added core Involves Datadog core libraries community Was opened by a community member labels Mar 20, 2019
@delner
Copy link
Contributor

delner commented Mar 20, 2019

From a quick glance, this looks pretty good. Let me think a little more on this and get back to you soon; thanks for the contribution!

@delner delner changed the base branch from master to 0.22-dev April 1, 2019 17:09
Copy link
Contributor

@delner delner left a comment

Choose a reason for hiding this comment

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

Okay, I feel pretty good about this; looks great! Thanks @ericmustin! 🎉

@delner delner added this to the 0.22.0 milestone Apr 1, 2019
@delner delner merged commit 28c6222 into DataDog:0.22-dev Apr 1, 2019
@ericmustin ericmustin deleted the issue_457_log_if_integration_incompatible branch August 10, 2020 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Was opened by a community member core Involves Datadog core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants