lhc-core-interceptors 2.3.0 → 2.3.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: 4f9b008ab67152dd009a75908ba53b46e859c3e9
4
- data.tar.gz: 894734ee22df57d95f6a5e4b579d8eba39847625
3
+ metadata.gz: a526a11a2057f12a278ab4f88ec1a0c03e0cf55f
4
+ data.tar.gz: 605e30abe12b000856a0c2e8d1f2fcba6dd99d1a
5
5
  SHA512:
6
- metadata.gz: 20f42d9456146fed2455827f7aca139a096a1cad24c8489b3e9c2617c042439fc1fa4b98fafe6be92b34af8ac4cb87186c90871354faac297426baf7e2b291f4
7
- data.tar.gz: c39c15d1541a41727342ac0f50c6f17d5c486364db5fa021459ada3026c733a37419cb94d57a677ee1b27233173e4326b8fd69f16259c5b0264b5b9b62db4618
6
+ metadata.gz: 9709a396da2b5e776bfa3e9c8e85fd8b594052f72a6047a4f8c0cb70cd2ddcd9cb40e57540db66741c160be658bc98a691e2d5cf4cdf4d0cdb1e3da5d6d4bc62
7
+ data.tar.gz: c2af4080f63fc8ad277552ef163772ec5c0ed69ffc608ff3929d15bcf1a25c5a326ee8b886177bcac99b283bb870be1d0155486015328ff9db32d02464f3d688
@@ -7,8 +7,19 @@ class LHC::Rollbar < LHC::Interceptor
7
7
  additional_params = request.options.fetch(:rollbar, {})
8
8
  error = LHC::Error.find(response)
9
9
  data = {
10
- response: response,
11
- request: request
10
+ response: {
11
+ body: response.body,
12
+ code: response.code,
13
+ headers: response.headers,
14
+ time: response.time,
15
+ timeout?: response.timeout?
16
+ },
17
+ request: {
18
+ url: request.url,
19
+ method: request.method,
20
+ headers: request.headers,
21
+ params: request.params
22
+ }
12
23
  }.merge additional_params
13
24
  Rollbar.error(
14
25
  error,
@@ -1,3 +1,3 @@
1
1
  module LHCCoreInterceptors
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhc-core-interceptors
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - local.ch