civo-logger 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/civo/logger/middleware.rb +4 -4
- data/lib/civo/logger/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: 8ed4a3de9af1238d3b5c79f0bc60034f372bf48c
|
4
|
+
data.tar.gz: 5294ad4a4f45caf71969d6ac31a83797bae0c4d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8ac335e13d29b4b03a90d28b34fa94d61358d26331a7053fa3d2f48ecefb2cffbd735caa3ea52efefe148ce62278a8bc1eb4e2a8c9cabff69b64d9a806c2210
|
7
|
+
data.tar.gz: 8455cd100e98211e75799a948c6a9d96db64a969b58eb0cf5db6a329a73cdfe2be2539c22328e4daca5fe399fa4cb48020b23353b86b5726d17d507d1604a31f
|
@@ -199,10 +199,10 @@ module Civo
|
|
199
199
|
tags: { url: request.fullpath, method: request.request_method, app: app_name },
|
200
200
|
timestamp: (Time.now.to_r * 1000).to_i
|
201
201
|
}
|
202
|
-
data[:values][:email] = request.headers["X-CivoCom-User-Email"]
|
203
|
-
data[:values][:civocom_request_path] = request.headers["X-CivoCom-Request-Path"]
|
204
|
-
data[:tags][:civocom_request_id] = request.headers["X-CivoCom-RequestID"]
|
205
|
-
data[:tags][:request_id] = request.uuid
|
202
|
+
data[:values][:email] = request.headers["X-CivoCom-User-Email"] if request.headers["X-CivoCom-User-Email"].present?
|
203
|
+
data[:values][:civocom_request_path] = request.headers["X-CivoCom-Request-Path"] if request.headers["X-CivoCom-Request-Path"].present?
|
204
|
+
data[:tags][:civocom_request_id] = request.headers["X-CivoCom-RequestID"] if request.headers["X-CivoCom-RequestID"].present?
|
205
|
+
data[:tags][:request_id] = request.uuid if request.uuid.present?
|
206
206
|
|
207
207
|
@influxdb.write_point("requests", data, INFLUXDB_PRECISION)# , INFLUXDB_RETENTION)
|
208
208
|
end
|
data/lib/civo/logger/version.rb
CHANGED