signalfx-faraday-instrumentation 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/faraday-tracer.gemspec +1 -1
- data/lib/faraday/tracer.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8161f340d869b99a8156948c0bc9a1bfba06f98299f8365e05c0a31683e7f287
|
4
|
+
data.tar.gz: fcba65788673b8ae34d23bed48675c4c998bb64bc93e9d9f37c0befcf4fa4644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40307be189c1ec13a6e33a185b8596222ea9dae5d4cd90df7a5726d66745b7c3991203ebe971cb4018297cf03d7c2cf01ef2ca8fd96a09834989bdf9f2cca744
|
7
|
+
data.tar.gz: 2a4f5bad901d6532115db08fbf4a078162c09bd47484c4cf61af04d090d350d47dca7142c66c04e4768af10fbe737fe6f8d05346e5a00041b6f1e8ad121089fd
|
data/faraday-tracer.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'signalfx-faraday-instrumentation'
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.1'
|
8
8
|
spec.authors = ['SaleMove TechMovers']
|
9
9
|
spec.email = ['techmovers@salemove.com']
|
10
10
|
|
data/lib/faraday/tracer.rb
CHANGED
@@ -58,12 +58,12 @@ module Faraday
|
|
58
58
|
private
|
59
59
|
|
60
60
|
def span_name(env)
|
61
|
-
context = env.request.context
|
61
|
+
context = env.request.context if env.request.respond_to? :context
|
62
62
|
context.is_a?(Hash) && context[:span_name] || @span_name || env[:method].to_s.upcase
|
63
63
|
end
|
64
64
|
|
65
65
|
def parent_span(env)
|
66
|
-
context = env.request.context
|
66
|
+
context = env.request.context if env.request.respond_to? :context
|
67
67
|
span = context.is_a?(Hash) && context[:span] || @parent_span
|
68
68
|
return unless span
|
69
69
|
|
@@ -86,7 +86,7 @@ module Faraday
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def peer_service(env)
|
89
|
-
context = env.request.context
|
89
|
+
context = env.request.context if env.request.respond_to? :context
|
90
90
|
context.is_a?(Hash) && context[:service_name] || @service_name
|
91
91
|
end
|
92
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: signalfx-faraday-instrumentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SaleMove TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentracing
|