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] use direct instrumentation instead of Rails instrumentation #235

Merged
merged 4 commits into from
Nov 2, 2017

Conversation

palazzem
Copy link
Contributor

Overview

Since most of the methods require wrapping Rails internals execution, it's useless relying in Rails instrumentation just to keep the code separated. With this patch, We're not relying in the Rails instrumentation anymore, keeping a subscriber only for ActiveRecord.

Benchmark

The following benchmark hits the :index available in the testing app to see the benefit of this change:

# Rails instrumentation:  148.740000   2.710000 151.450000 (152.737155)
# Direct instrumentation: 143.570000   2.530000 146.100000 (146.734710)

@palazzem palazzem added the core Involves Datadog core libraries label Oct 30, 2017
@palazzem palazzem added this to the 0.10.0 milestone Oct 30, 2017
@palazzem palazzem modified the milestones: 0.10.0, 0.9.1 Oct 30, 2017
@palazzem palazzem merged commit 5edd255 into master Nov 2, 2017
@palazzem palazzem deleted the palazzem/rails-wrapper branch November 2, 2017 01:51
palazzem pushed a commit that referenced this pull request Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants