hoodoo 3.3.3 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e10dc0e43d699ef1b3dc98b05b0918e69eacd48bef5cb3f22b440499b1c8cbf0
4
- data.tar.gz: 65e8ccd1832b46d3a8bde6992819f779d1cd49913244c233ad3ece8549a72d36
3
+ metadata.gz: bbc50d3fd1b87a58487f9a6a66cf49e73fe76f6bc41d391ae7c05b448a096240
4
+ data.tar.gz: 7d3d152f93a6608d000658bfe825db320595986a27aee6c752b2b4456e85f771
5
5
  SHA512:
6
- metadata.gz: a20c94b81ee5eb4876a862963d98aa6e2ee2af806fb680e6b8e9212d5cbde31f879ed66c5eee510bb24caf4af3142745329fde5a3fe54ae7e97643430bba006b
7
- data.tar.gz: 63cd8d52d68fd6c8a1808e6064c670767785d4dda403cfade8759976a67c38fa0043e716c4dc9dbed92bfd4b9bc5c80e1ca5c1fbb08e8ac14ed07c40c19f1145
6
+ metadata.gz: 7f9e701b77432904595dd51d472e1ef993fd88bcae49dcd317134d05750a6f8731f3d7e441824e1bf0cfa4faa58a97c3a9c697362d2dd5cf71f42b7e8ff9b03e
7
+ data.tar.gz: 3e208273d9c442ad5c38c1a1de446229787a53d58fe3c5bd5c490c75c60f50afdbbf7d6d829880002afa01f48cee65cc97891c9bd39a67f7fea1a913f3283512
@@ -16,7 +16,7 @@ module Hoodoo
16
16
  module Patch
17
17
 
18
18
  begin
19
- require 'ddtrace' # Raises LoadError if Datadog is absent
19
+ require 'datadog/tracing' # Raises LoadError if Datadog is absent
20
20
 
21
21
  # Wrap Hoodoo::Client::Endpoint::AMQP using Datadog transaction
22
22
  # tracing so that over-queue inter-resource calls get connected
@@ -43,7 +43,7 @@ module Hoodoo
43
43
  def monkey_send_request( http_message, full_uri )
44
44
  amqp_response = nil
45
45
 
46
- Datadog.tracer.trace( 'alchemy.request' ) do |span|
46
+ Datadog::Tracing.trace( 'alchemy.request' ) do |span|
47
47
  span.service = 'alchemy'
48
48
  span.span_type = 'alchemy'
49
49
  span.resource = http_message[ 'verb' ]
@@ -12,7 +12,7 @@ module Hoodoo
12
12
  # The Hoodoo gem version. If this changes, be sure to re-run
13
13
  # <tt>bundle install</tt> or <tt>bundle update</tt>.
14
14
  #
15
- VERSION = '3.3.3'
15
+ VERSION = '3.4.0'
16
16
 
17
17
  # The Hoodoo gem date. If this changes, be sure to re-run
18
18
  # <tt>bundle install</tt> or <tt>bundle update</tt>.
@@ -18,9 +18,8 @@ describe Hoodoo::Monkey::Patch::DatadogTracedAMQP, :order => :defined do
18
18
  CounterAMQ.datadog_trace_count = 0
19
19
 
20
20
  # Stub Datadog
21
- class Datadog
22
- def self.tracer
23
- Datadog.new
21
+ module Datadog
22
+ module Tracing
24
23
  end
25
24
  end
26
25
 
@@ -29,7 +28,7 @@ describe Hoodoo::Monkey::Patch::DatadogTracedAMQP, :order => :defined do
29
28
 
30
29
  after :all do
31
30
  Hoodoo::Monkey.disable( extension_module: Hoodoo::Monkey::Patch::DatadogTracedAMQP )
32
- Object.send( :remove_const, :Datadog )
31
+ Datadog.send( :remove_const, :Tracing )
33
32
  end
34
33
 
35
34
  before :each do
@@ -43,8 +42,8 @@ describe Hoodoo::Monkey::Patch::DatadogTracedAMQP, :order => :defined do
43
42
  result
44
43
  end
45
44
 
46
- allow_any_instance_of( Datadog ).to receive( :trace ) do | &block |
47
- # Datadog Trace method responds with a yielded span this is here to mock tha
45
+ allow( Datadog::Tracing ).to receive( :trace ) do | &block |
46
+ # Datadog Trace method responds with a yielded span this is here to mock that
48
47
  span = double('span', trace_id: 'trace_id', span_id: 'span_id').as_null_object
49
48
  CounterAMQ.datadog_trace_count += 1
50
49
  block.call(span)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoodoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loyalty New Zealand
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: ddtrace
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: activerecord
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -304,6 +318,20 @@ dependencies:
304
318
  - - "~>"
305
319
  - !ruby/object:Gem::Version
306
320
  version: '3.4'
321
+ - !ruby/object:Gem::Dependency
322
+ name: debug
323
+ requirement: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - ">="
326
+ - !ruby/object:Gem::Version
327
+ version: 1.0.0
328
+ type: :development
329
+ prerelease: false
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - ">="
333
+ - !ruby/object:Gem::Version
334
+ version: 1.0.0
307
335
  description: Simplify the implementation of consistent services within an API-based
308
336
  software platform.
309
337
  email: