zuora_connect 1.5.40m → 1.5.40n
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da31234a30d9bee8a940c6f9247229872f805fad
|
4
|
+
data.tar.gz: 9867e967bacb70e8c9421c2d867f0b52fb977de8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 907e4ca1e976b61b683080ae090669bff7a70eea888365ee0ee217f839e893a04cc6278d90e27a6b7d1464c226d6fdd2cc252dfe16bb011b01bcd935f5a5490c
|
7
|
+
data.tar.gz: f5c0e00257301e4fcc8aa4239b7d111be3effd1ab9b8dae9242532b3f92e52f0b0449cc6aef895e8089533129c774c4014a67cf0f0a7d526fab5a378c5921bd2
|
@@ -39,10 +39,6 @@ module ZuoraConnect
|
|
39
39
|
return p_type
|
40
40
|
end
|
41
41
|
|
42
|
-
# payloads with 500 requests do not have status as it is not set by the controller
|
43
|
-
# https://github.com/rails/rails/issues/33335
|
44
|
-
status_code = payload[:status] ? payload[:status] : payload[:exception_object].present? ? 500 : ""
|
45
|
-
|
46
42
|
# Write to telegraf
|
47
43
|
def self.write_to_telegraf(endpoint_name: nil, method_name: nil, status_code: nil, response_time: nil, db_runtime: nil, view_runtime: nil, content_type: nil, direction: nil, error_type: nil, app_instance: nil, function_name: nil)
|
48
44
|
|
@@ -19,11 +19,9 @@ module Middleware
|
|
19
19
|
request_path = "#{payload[:controller]}##{payload[:action]}"
|
20
20
|
response_time = finished-started
|
21
21
|
|
22
|
-
status_code = payload[:status] ? payload[:status] : ""
|
23
|
-
|
24
22
|
# payloads with 500 requests do not have status as it is not set by the controller
|
25
23
|
# https://github.com/rails/rails/issues/33335
|
26
|
-
status_code =
|
24
|
+
status_code = payload[:status] ? payload[:status] : payload[:exception_object].present? ? 500 : ""
|
27
25
|
|
28
26
|
# Write to telegraf
|
29
27
|
ZuoraConnect::AppInstanceBase.write_to_telegraf("endpoint_name": request_path, "method_name": payload[:method], "status_code": status_code, "response_time": response_time, "db_runtime": payload[:db_runtime].to_f, "view_runtime": payload[:view_runtime], "content_type": content_type, "direction": "inbound")
|