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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 750a59964520a64d287661044890fdcae0dcebcd
4
- data.tar.gz: '089b786d2180c72d922516851a578a7a95894636'
3
+ metadata.gz: 8ed4a3de9af1238d3b5c79f0bc60034f372bf48c
4
+ data.tar.gz: 5294ad4a4f45caf71969d6ac31a83797bae0c4d4
5
5
  SHA512:
6
- metadata.gz: c80f5348d783d49508722e515db10460910f26a9bd213e2e24c2f3c452b4dbe53918d7452de85bf1a36e7d14dd185c6eefc9ba09a83db1a937e965635f32a378
7
- data.tar.gz: 9b12f19f7da5fc187cc3aef63215e9b5604ffd1012c2136e53088ee7c3bdd23a74baf0b80c382b666e2b1d6e9c68999f9592af12d6735237fbec2f5820b7348a
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
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civo-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries