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

Improve code performances #656

Merged
merged 2 commits into from
Dec 18, 2018
Merged

Improve code performances #656

merged 2 commits into from
Dec 18, 2018

Conversation

guizmaii
Copy link
Contributor

No description provided.

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.

Other than one minor change, this looks good!

# Typical of ActiveSupport::Notifications `sql.active_record`
def self.connection_config_from_connection(connection)
if connection.instance_variable_defined?(:@config)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to keep the defined? check here, otherwise this generates warnings.

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.

Made the change so we can get this into the 0.18.0 release. Thanks @guizmaii!

@delner delner added integrations Involves tracing integrations community Was opened by a community member labels Dec 18, 2018
@delner delner added this to the 0.18.0 milestone Dec 18, 2018
@delner delner merged commit f1b0e90 into DataDog:0.18-dev Dec 18, 2018
@guizmaii guizmaii deleted the clean branch December 18, 2018 13:07
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 integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants