ddtrace 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6e5b9ed9670e7fae8c7713c4262912573d1d85d
4
- data.tar.gz: 2299e40d5eda07a3a16247ead6ab701e8e40f244
3
+ metadata.gz: 0243b521350de03538134c3513aedc7a0c23b8e8
4
+ data.tar.gz: addea843c61b11542c59d6577993c9a3d1dab233
5
5
  SHA512:
6
- metadata.gz: 6373e9ac4dc7c3dbe3dc58119a3c88043cdb5d440787eddce6fc1c967e16226513b6d89fc7920215baf23f8ef241afe3b431b24c5869dfcfb1fba08f58857f99
7
- data.tar.gz: d325aae3c7c5b550caf3a2eae70ca67d80d7555fe2295ee2c0e30e78d63d7633f34629c802941730971b5eb001523b08cf8d48c944fb7554b74141ac5e326da7
6
+ metadata.gz: 755acb13506d77ecf0edc29d5fb9bc28c929251bdfbbf06a90fc54c80a9aec34285a0fa4799efa580a36d10b8aabbc2d577b3262d899d350fcb2f1370d060f63
7
+ data.tar.gz: 46d9d93281db786b614b41d0eab804655dea4770d2d555895914097ce20d4efb6af00af4c174c3fc7f080c66b4286dc9e2444d235b45ac57c8a720c075d6eb9b
data/Appraisals CHANGED
@@ -88,6 +88,7 @@ elsif Gem::Version.new('1.9.3') <= Gem::Version.new(RUBY_VERSION) \
88
88
  gem 'sinatra', '1.4.5'
89
89
  gem 'sqlite3'
90
90
  gem 'sucker_punch'
91
+ gem 'timers', '< 4.2'
91
92
  end
92
93
  end
93
94
  elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
@@ -172,6 +173,7 @@ elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
172
173
  gem 'sinatra', '1.4.5'
173
174
  gem 'sqlite3'
174
175
  gem 'sucker_punch'
176
+ gem 'timers', '< 4.2'
175
177
  end
176
178
  end
177
179
  elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
@@ -276,6 +278,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
276
278
  gem 'sinatra', '1.4.5'
277
279
  gem 'sqlite3'
278
280
  gem 'sucker_punch'
281
+ gem 'timers', '< 4.2'
279
282
  end
280
283
  end
281
284
  elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
@@ -4,6 +4,17 @@
4
4
 
5
5
  ## [Unreleased (beta)]
6
6
 
7
+ ## [0.17.1] - 2018-11-07
8
+
9
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.17.1
10
+
11
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.17.0...v0.17.1
12
+
13
+ ### Fixed
14
+
15
+ - RestClient incorrect app type (#583) (@gaborszakacs)
16
+ - DelayedJob incorrect job name when used with ActiveJob (#605) (@agirlnamedsophia)
17
+
7
18
  ## [0.17.0] - 2018-10-30
8
19
 
9
20
  Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.17.0
@@ -543,8 +554,9 @@ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.3.1
543
554
 
544
555
  Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
545
556
 
546
- [Unreleased (stable)]: https://github.com/DataDog/dd-trace-rb/compare/v0.17.0...master
547
- [Unreleased (beta)]: https://github.com/DataDog/dd-trace-rb/compare/v0.17.0...0.18-dev
557
+ [Unreleased (stable)]: https://github.com/DataDog/dd-trace-rb/compare/v0.17.1...master
558
+ [Unreleased (beta)]: https://github.com/DataDog/dd-trace-rb/compare/v0.17.1...0.18-dev
559
+ [0.17.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.17.0...v0.17.1
548
560
  [0.17.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.16.1...v0.17.0
549
561
  [0.16.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.16.0...v0.16.1
550
562
  [0.16.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.15.0...v0.16.0
@@ -9,7 +9,15 @@ module Datadog
9
9
  def self.instrument(job, &block)
10
10
  return block.call(job) unless tracer && tracer.enabled
11
11
 
12
- tracer.trace(Ext::SPAN_JOB, service: configuration[:service_name], resource: job.name) do |span|
12
+ # When DelayedJob is used through ActiveJob, we need to parse the payload differentely
13
+ # to get the actual job name
14
+ job_name = if job.payload_object.respond_to?(:job_data)
15
+ job.payload_object.job_data['job_class']
16
+ else
17
+ job.name
18
+ end
19
+
20
+ tracer.trace(Ext::SPAN_JOB, service: configuration[:service_name], resource: job_name) do |span|
13
21
  span.set_tag(Ext::TAG_ID, job.id)
14
22
  span.set_tag(Ext::TAG_QUEUE, job.queue) if job.queue
15
23
  span.set_tag(Ext::TAG_PRIORITY, job.priority)
@@ -9,7 +9,7 @@ module Datadog
9
9
  class Settings < Contrib::Configuration::Settings
10
10
  option :distributed_tracing, default: false
11
11
  option :service_name, default: Ext::SERVICE_NAME, depends_on: [:tracer] do |value|
12
- get_option(:tracer).set_service_info(value, Ext::APP, Datadog::Ext::AppTypes::DB)
12
+ get_option(:tracer).set_service_info(value, Ext::APP, Datadog::Ext::AppTypes::WEB)
13
13
  value
14
14
  end
15
15
  end
@@ -2,7 +2,7 @@ module Datadog
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 17
5
- PATCH = 0
5
+ PATCH = 1
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddtrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-30 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack