rack-instrumentation 0.2.0 → 0.3.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: '048a7c5d3435d703456d716fb1dcffc3256ef7092f4422881eac63465d48b53d'
4
- data.tar.gz: '08f091e42f531b5b42536543ff4c533fdde0d382c0a276b63d7e135eaf4ef13d'
3
+ metadata.gz: bf11f992bac6c58be0cd203a50fe66a25f41310f4da015e84a903f19594586b5
4
+ data.tar.gz: 834ef50f48ef5e18e041fc8452acc162a0628e9715864063f0e019f65693a88c
5
5
  SHA512:
6
- metadata.gz: d8ce072b8c236d14c9dffb390b222e759e12b0428e4811a2cb6b75cff7916f16da6b38eea5b3e7d199920ce70e66299918eca07aada2c355378d29bf80998c2c
7
- data.tar.gz: 1afc1ff2d57f98e3524d3ded1456a55176ead31894f010e6e4d38d9f27a22affaa443ddd2081b757246206ec3bd399fbde824997d75b75465b30a8ce92148f10
6
+ metadata.gz: 565c7a13fd34cbd005b94f54990cc52341f4ede9bdaaa05de412d170960eb58b809f8c6f2107c406d6efd04613fcb4c21a6ed34df5e61026554cb791bd9865e7
7
+ data.tar.gz: b3bb1a0176867a640d4486e1edefb476b6d9c9b87658435b864bb553427060120ec94eef16b31bca7903414e29d0f434856a06654d7b4ba3114592d935cb8eef
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-instrumentation (0.2.0)
4
+ rack-instrumentation (0.3.0)
5
5
  opentracing (~> 0.5.0)
6
6
 
7
7
  GEM
@@ -30,6 +30,7 @@ module Rack
30
30
 
31
31
  app.call(env).tap do |status_code, _headers, _body|
32
32
  span.set_tag('http.status_code', status_code)
33
+ span.set_tag('error', true) if (500..599).include?(status_code)
33
34
 
34
35
  route = route_from_env(env)
35
36
  span.operation_name = route if route
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Instrumentation
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lauer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-03 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentracing