hoodoo 3.3.2 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbc50d3fd1b87a58487f9a6a66cf49e73fe76f6bc41d391ae7c05b448a096240
|
4
|
+
data.tar.gz: 7d3d152f93a6608d000658bfe825db320595986a27aee6c752b2b4456e85f771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
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.
|
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' ]
|
data/lib/hoodoo/version.rb
CHANGED
@@ -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.
|
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
|
-
|
22
|
-
|
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
|
-
|
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
|
-
|
47
|
-
# Datadog Trace method responds with a yielded span this is here to mock
|
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.
|
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:
|