Skip to content

Commit

Permalink
upgrade ddtrace to datadog v2
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasdanz committed Aug 6, 2024
1 parent d4a5536 commit a3bbf09
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
19 changes: 8 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,26 @@ PATH
remote: .
specs:
degica_datadog (0.1.0)
ddtrace (~> 1.0)
datadog (~> 2.0)
dogstatsd-ruby (~> 5)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
datadog-ci (0.5.1)
msgpack
ddtrace (1.18.0)
datadog-ci (~> 0.5.0)
debase-ruby_core_source (= 3.2.3)
libdatadog (~> 5.0.0.1.0)
datadog (2.2.0)
debase-ruby_core_source (= 3.3.1)
libdatadog (~> 10.0.0.1.0)
libddwaf (~> 1.14.0.0.0)
msgpack
debase-ruby_core_source (3.2.3)
debase-ruby_core_source (3.3.1)
diff-lcs (1.5.0)
docile (1.4.1)
dogstatsd-ruby (5.6.1)
ffi (1.16.3)
ffi (1.17.0)
json (2.7.1)
language_server-protocol (3.17.0.3)
libdatadog (5.0.0.1.0)
libdatadog (10.0.0.1.0)
libddwaf (1.14.0.0.0)
ffi (~> 1.0)
msgpack (1.7.2)
Expand Down Expand Up @@ -86,4 +83,4 @@ DEPENDENCIES
simplecov-cobertura

BUNDLED WITH
2.2.33
2.5.17
2 changes: 1 addition & 1 deletion degica_datadog.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
end
spec.require_paths = ["lib"]

spec.add_dependency "ddtrace", "~> 1.0"
spec.add_dependency "datadog", "~> 2.0"
spec.add_dependency "dogstatsd-ruby", "~> 5"
spec.add_development_dependency "bundler", "~> 2.0"
spec.add_development_dependency "rspec", "~> 3.0"
Expand Down
4 changes: 2 additions & 2 deletions lib/degica_datadog/tracing.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require "ddtrace"
require "datadog"

module DegicaDatadog
# Tracing related functionality.
Expand All @@ -10,7 +10,7 @@ class << self # rubocop:disable Metrics/ClassLength
def init(rake_tasks: []) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
return unless Config.enabled?

require "ddtrace/auto_instrument"
require "datadog/auto_instrument"

Datadog.configure do |c| # rubocop:disable Metrics/BlockLength
c.service = Config.service
Expand Down

0 comments on commit a3bbf09

Please sign in to comment.