Skip to content

Commit

Permalink
Update ddtrace (#2457)
Browse files Browse the repository at this point in the history
  • Loading branch information
christinach authored Aug 20, 2024
1 parent 6ce5e02 commit b626050
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ gem 'whenever', "~> 0.10"
gem 'yard'

group :production do
gem "ddtrace", '~> 0.54.2'
gem "ddtrace", '~> 1.14.0'
end

group :development, :test do
Expand Down
15 changes: 10 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,12 @@ GEM
rexml
crass (1.0.6)
date (3.3.4)
ddtrace (0.54.2)
debase-ruby_core_source (<= 0.10.14)
ddtrace (1.14.0)
debase-ruby_core_source (= 3.2.1)
libdatadog (~> 3.0.0.1.0)
libddwaf (~> 1.9.0.0.0)
msgpack
debase-ruby_core_source (0.10.14)
debase-ruby_core_source (3.2.1)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
devise (4.8.1)
Expand Down Expand Up @@ -335,6 +337,9 @@ GEM
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
lcsort (0.9.1)
libdatadog (3.0.0.1.0)
libddwaf (1.9.0.0.1)
ffi (~> 1.0)
library_stdnums (1.6.0)
lightly (0.2.1)
llhttp-ffi (0.4.0)
Expand Down Expand Up @@ -371,7 +376,7 @@ GEM
minitar (0.9)
minitest (5.24.1)
mize (0.5.0)
msgpack (1.6.0)
msgpack (1.7.2)
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.3.0)
Expand Down Expand Up @@ -682,7 +687,7 @@ DEPENDENCIES
capybara
change_the_subject (~> 0.3.5)
coveralls_reborn
ddtrace (~> 0.54.2)
ddtrace (~> 1.14.0)
devise
dotenv-rails
ed25519
Expand Down
16 changes: 8 additions & 8 deletions config/initializers/datadog.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# frozen_string_literal: true
if Rails.env.production?
Datadog.configure do |c|
c.tracer(enabled: false) unless Rails.env.production?
c.env = Rails.env
c.service = 'bibdata'
c.tracing.eanbled = false unless Rails.env.production?
c.env = 'production'
# c.service = 'bibdata'
# Rails
c.use :rails
c.tracing.instrument :rails

# Redis
c.use :redis
c.tracing.instrument :redis

# Net::HTTP
c.use :http
c.tracing.instrument :http

# Sidekiq
c.use :sidekiq
c.tracing.instrument :sidekiq

# Faraday
c.use :faraday
c.tracing.instrument :faraday
end
end

0 comments on commit b626050

Please sign in to comment.