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 +4 -4
- data/lib/lhc-core-interceptors/rollbar.rb +13 -2
- data/lib/lhc-core-interceptors/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a526a11a2057f12a278ab4f88ec1a0c03e0cf55f
|
4
|
+
data.tar.gz: 605e30abe12b000856a0c2e8d1f2fcba6dd99d1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
11
|
-
|
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,
|