civo-logger 0.3.1 → 0.3.2
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 -0
- 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: 750a59964520a64d287661044890fdcae0dcebcd
|
4
|
+
data.tar.gz: '089b786d2180c72d922516851a578a7a95894636'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c80f5348d783d49508722e515db10460910f26a9bd213e2e24c2f3c452b4dbe53918d7452de85bf1a36e7d14dd185c6eefc9ba09a83db1a937e965635f32a378
|
7
|
+
data.tar.gz: 9b12f19f7da5fc187cc3aef63215e9b5604ffd1012c2136e53088ee7c3bdd23a74baf0b80c382b666e2b1d6e9c68999f9592af12d6735237fbec2f5820b7348a
|
@@ -199,6 +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
206
|
|
203
207
|
@influxdb.write_point("requests", data, INFLUXDB_PRECISION)# , INFLUXDB_RETENTION)
|
204
208
|
end
|
data/lib/civo/logger/version.rb
CHANGED