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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07fddec0f3dc229c51f1fdf038fac47ae8224013dd6a72aa744c9443dc1ac6c0
4
- data.tar.gz: 2af14a3aabec25f66e57a0fe9838f0dee14e89320ac8e9082f518a3c1a94ed1a
3
+ metadata.gz: 8161f340d869b99a8156948c0bc9a1bfba06f98299f8365e05c0a31683e7f287
4
+ data.tar.gz: fcba65788673b8ae34d23bed48675c4c998bb64bc93e9d9f37c0befcf4fa4644
5
5
  SHA512:
6
- metadata.gz: 787573b4955ace043d9299bf063fbcf93f3cc53a07064f938475021eb29d237c8733a54cccfdf00dd2d912308ca7a39ad2f79ac15e5211d23a4ab0d3d583925c
7
- data.tar.gz: ad7d6b6b4e35acabaa14b4ccedb441ef4ee66cf15f060c0645d648d797ca5103bbae3c479aa88faa9b9fed1b8c5ed2a001bd736f6b3da6fef281109aebc2f6d6
6
+ metadata.gz: 40307be189c1ec13a6e33a185b8596222ea9dae5d4cd90df7a5726d66745b7c3991203ebe971cb4018297cf03d7c2cf01ef2ca8fd96a09834989bdf9f2cca744
7
+ data.tar.gz: 2a4f5bad901d6532115db08fbf4a078162c09bd47484c4cf61af04d090d350d47dca7142c66c04e4768af10fbe737fe6f8d05346e5a00041b6f1e8ad121089fd
@@ -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.0'
7
+ spec.version = '0.1.1'
8
8
  spec.authors = ['SaleMove TechMovers']
9
9
  spec.email = ['techmovers@salemove.com']
10
10
 
@@ -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.0
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-23 00:00:00.000000000 Z
11
+ date: 2019-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentracing