faraday-tracer 0.6.1 → 0.7.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: 757004104d14a23593e81d9ff123168049e80dfe8c9110d447292b5015dd7ba8
4
- data.tar.gz: dbf7dd70ebb93b714bdf8312c7b1fa3fb4661111161047da6d7a9b781d7ac47c
3
+ metadata.gz: 60e2e4aa894625318f654fc7db470aa3148d8eba5cce402b1ae40d45043c6869
4
+ data.tar.gz: 9439a5e3e675651c4a3bfe704e8f0051ab8a6cc02514bb232225be3dd2b9ca51
5
5
  SHA512:
6
- metadata.gz: 184f6c154460756b1054e9e2d84b97431ced091b7b019e6571fe090221fb74612fea0532340aef502a76c58119b539c5247fcbc2e7e50a9c1977acfbb30ca45a
7
- data.tar.gz: 6a6ea73727b67e8d0dd5c67d0c2e944c53e3cf729e9cd11d7012a14d9266d510e31bb7617ed9f9971ad89e38a7a4435cef04ca4f05c5ebe21349e13b6c19f24e
6
+ metadata.gz: b8c7a03dcb38ad3e7a8b8170a5e2a0fa165d75f5fc95d473e71505080e4533db868763e0c8f053f232dd6b10ed110a7946d38160ef53985254a56caa829806e1
7
+ data.tar.gz: 845173a57f9af7320ee0631eccc262d776f32050639ee77c55ce4bd1909cf9b90d1228c41a7aec667a88e0ec3a1bcc2003ef3d623584f997d874ed656a085388
@@ -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 = 'faraday-tracer'
7
- spec.version = '0.6.1'
7
+ spec.version = '0.7.0'
8
8
  spec.authors = ['SaleMove TechMovers']
9
9
  spec.email = ['techmovers@salemove.com']
10
10
 
@@ -41,6 +41,11 @@ module Faraday
41
41
  @tracer.inject(span.context, OpenTracing::FORMAT_RACK, env[:request_headers])
42
42
  @app.call(env).on_complete do |response|
43
43
  span.set_tag('http.status_code', response.status)
44
+
45
+ if response.status >= 500
46
+ span.set_tag('error', true)
47
+ span.log_kv(event: 'error', message: response.body.to_s)
48
+ end
44
49
  end
45
50
  rescue *@errors => e
46
51
  span.set_tag('error', true)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SaleMove TechMovers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentracing