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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a56ee292f2760cd02a8b905107e6f5f75dca94ef
4
- data.tar.gz: ac3046526dbd39b61796d752d277ca1c97571efe
3
+ metadata.gz: 750a59964520a64d287661044890fdcae0dcebcd
4
+ data.tar.gz: '089b786d2180c72d922516851a578a7a95894636'
5
5
  SHA512:
6
- metadata.gz: 7e3880f7c269e6d831b8d560729e576f705225e655e21140496213b1c41b083394d3fc5bcf04b2cb3a5026d17c35e8c1fdec8fba75ab7718a76db8b6ee761c28
7
- data.tar.gz: 64848d558aa37a70037dfc02e57ae1c9b7ac72951b8c09d76c6be4c77cb7a35524bfbacc545d82f1495d5755213db6c91fb5740b2d74f82bd32a7ff3d9caffa6
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
@@ -1,5 +1,5 @@
1
1
  module Civo
2
2
  module Logger
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries