-
Notifications
You must be signed in to change notification settings - Fork 375
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
Auto Enable All Instrumentation Feature #1260
Changes from 43 commits
53c36d0
39c8f5d
644dba2
1af7b0d
de481a0
7918d49
6586217
36f6a91
f45cc9e
2dfdb14
a562e99
e28c90f
49e8e35
6d6a627
9bdc7c7
a4ec733
d07c6e5
92f4c9d
8347797
551735d
abd8752
2fe0339
2585ee0
f02d9b9
7c83169
39d7967
b70210f
7ff49cc
28c0da0
168cb97
3626e2d
b917f88
caff3cd
5c35252
7c412f4
dfab8a5
7bbc890
dcd5b49
1f036eb
0c55dda
79f8f9b
c38116f
916d5ca
a7b7420
33defed
b08df89
013f1dd
52be987
35c8e6b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,6 +144,21 @@ Install and configure the Datadog Agent to receive traces from your now instrume | |
|
||
### Quickstart for Rails applications | ||
|
||
#### Rails Auto Instrument all Integrations | ||
|
||
1. Add the `ddtrace` gem to your Gemfile: | ||
|
||
```ruby | ||
source 'https://rubygems.org' | ||
gem 'ddtrace', require: 'ddtrace/auto_instrument' | ||
``` | ||
|
||
2. Install the gem with `bundle install` | ||
|
||
3. You can configure, override, or disable any specific integration settings by also adding a [Rails Manual Configuration](#rails-manual-configuration) file. | ||
|
||
#### Rails Manual Configuration | ||
|
||
1. Add the `ddtrace` gem to your Gemfile: | ||
|
||
```ruby | ||
|
@@ -165,6 +180,24 @@ Install and configure the Datadog Agent to receive traces from your now instrume | |
|
||
### Quickstart for Ruby applications | ||
|
||
#### Ruby Auto Instrument all Integrations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we not say here "Auto Instrument All Integrations". That's a bit wordy and inconsistent with how we describe in other languages. Maybe just "Automatic Instrumentation" and "Manual Instrumentation" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It reads much better with your suggestion, probably an oversight on our side here. I'll make these changes. 🙇 @andrewsouthard1 |
||
|
||
1. Install the gem with `gem install ddtrace` | ||
2. Add `require 'ddtrace/auto_instrument'` to your application startup sequence. This must be done _after_ requiring any [supported libraries or frameworks](#integration-instrumentation) that should be instrumented. | ||
|
||
```ruby | ||
# Example frameworks and libraries | ||
require 'sinatra' | ||
marcotc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
require 'faraday' | ||
require 'redis' | ||
|
||
require 'ddtrace/auto_instrument' | ||
``` | ||
|
||
You can configure, override, or disable any specific integration settings by also adding a [Ruby Manual Configuration Block](#ruby-manual-configuration). | ||
|
||
#### Ruby Manual Configuration | ||
|
||
1. Install the gem with `gem install ddtrace` | ||
2. Add a configuration block to your Ruby application: | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require 'ddtrace' | ||
|
||
Datadog.add_auto_instrument if Datadog.respond_to?(:add_auto_instrument) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yup, can remove the defensive check here now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome! So much simpler than today 🎉.