Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Patch net/http
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Feb 25, 2017
1 parent fa44a42 commit 53657b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/datadog.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# config/initializers/datadog-tracer.rb
require 'net/http'
require 'ddtrace'

Rails.configuration.datadog_trace = {
auto_instrument: true,
auto_instrument_redis: true,
default_service: "Plum (#{Rails.env})"
}
Datadog::Monkey.patch_module(:http)

0 comments on commit 53657b1

Please sign in to comment.