hubstep 2.1.0 → 2.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
  SHA1:
3
- metadata.gz: 6daeef652b6059de7c8414e25607406ac11cc1d9
4
- data.tar.gz: 90cbcab84a1aa56013c5830a9bb2759b8983af9c
3
+ metadata.gz: f148ad6c3e1db0afc16d65b5dbfca8c4b6ba0e18
4
+ data.tar.gz: 196a420ef18d868e92b01f5ebebd0886a0247d7d
5
5
  SHA512:
6
- metadata.gz: b4e9b64109349da07a79569580694a032746e4bc5ecc9a5f3d33f45b14409932e5b9b33385345e2131571d77d875df948561a8190abba22a7b8df3d5a6872233
7
- data.tar.gz: cbc706f4afa3a8b2dfded9b02723bc0a769e5fc5f8aeb91467baadb52965b96202f45c2a27a6ab09ab30006ef5cb2f53ba12c63526df3041a6721df9903fafcc
6
+ metadata.gz: d04043811fec301102ab3517706d7a1b259a5347066a82feae02c6c873887622df7e91fd89397b5eb4cc0829437713f3d29fcfee433aba5ba1ea018bc125099c
7
+ data.tar.gz: f9f5e821422466dc65cfaff9439e5fcb10c6837b2409db0068bf81f0eb2ff35baeab36c7e2f91fcae92926611d3e79aa1cf60b3d68eb5608696eb8744e6beeed
@@ -86,7 +86,11 @@ module HubStep
86
86
  end
87
87
 
88
88
  def record_response(span, response_env)
89
- span.set_tag("http.status_code", response_env[:status])
89
+ status = response_env[:status]
90
+ span.set_tag("http.status_code", status)
91
+
92
+ return if status.to_i < 500
93
+ span.set_tag("error", true)
90
94
  end
91
95
 
92
96
  def record_exception(span, exception)
@@ -67,6 +67,8 @@ module HubStep
67
67
 
68
68
  def record_response(span, status, _headers, _body)
69
69
  span.set_tag("http.status_code", status)
70
+ return if status.to_i < 500
71
+ span.set_tag("error", true)
70
72
  end
71
73
 
72
74
  def tags(request)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HubStep
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubstep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-21 00:00:00.000000000 Z
11
+ date: 2017-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lightstep