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

[rails] avoid conditional require for active_record contrib module #62

Merged
merged 1 commit into from
Jan 19, 2017

Conversation

palazzem
Copy link
Contributor

What it does

Related to: #40

Avoids conditional require for ddtrace/contrib/rails/active_record module. In some configuration (and/or for order import), it's possible that the constant Datadog::Contrib::Rails::ActiveRecord is not initialized:

Detected Rails >= 3.x. Enabling auto-instrumentation for core components.
  .../dd-trace-rb-1b724b8af03c/lib/ddtrace/contrib/rails/framework.rb:97:in `auto_instrument': uninitialized constant Datadog::Contrib::Rails::ActiveRecord (NameError)

The loading / auto instrumentation behavior is not changed and everything behaves like before.

@palazzem palazzem added bug Involves a bug integrations Involves tracing integrations labels Jan 19, 2017
@palazzem palazzem requested a review from ufoot January 19, 2017 08:50
@palazzem palazzem merged commit 013165b into master Jan 19, 2017
@palazzem palazzem deleted the palazzem/rails-without-ar branch January 19, 2017 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants