kiev 3.0.0 → 4.0.0

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
  SHA256:
3
- metadata.gz: a4af5ecbba63c1047f216399bf8eed12d144f45a624e44dd9f165d17195e744c
4
- data.tar.gz: '09a4f7f96577a537d7f8160b7697b2050698c7f7da725f9f82a395a978353657'
3
+ metadata.gz: d931febf4f2ad051147ce2b796985482fe2510de337882f4a0ddf5405dec6dfa
4
+ data.tar.gz: c05aa2ff341c312313d2e10da5dbb2d552d7266827ea4f7f62529080013bc34b
5
5
  SHA512:
6
- metadata.gz: 2a3609ce3f0d8ff4c19c264c33310cb794fbac34947c1f56d6a796daea343e90868acc980652b66fb18cff747ae3dbfe53eeefb362df5ab7454fc26381a93997
7
- data.tar.gz: 5901954627dbeec180b4946118765736004e7512ad5e8d232f72cd3903178fe735e0e931c38bfcae21c555612d4dd4ce1e388a7bbb3aa84d7d52aaf518b974b4
6
+ metadata.gz: 3c57d6b5a18cc053e3e6fdde63d7e9c83fc3348b050d7ffee4bfcc8dbede1ddd843974faf3256e524a0eca3ec2aa0075a25d1917becdaa263c367a1a1d1b660b
7
+ data.tar.gz: 9b95396a7c5ed4f1a0a90d607b9bae3eaf1254aa4dbab23e8d7da0a3b2d5e37256d84d19ec8366d317a7194b68cdae3f69dd6f46f90c2e2c04c62d3de336cd2d
data/README.md CHANGED
@@ -168,7 +168,7 @@ For web requests the Kiev middleware will log the following information by defau
168
168
  "event":"request_finished",
169
169
  "level":"INFO",
170
170
  "timestamp":"2017-01-27T16:11:44.123Z",
171
- "request_host":"localhost",
171
+ "host":"localhost",
172
172
  "verb":"GET",
173
173
  "path":"/",
174
174
  "params":"{\"hello\":\"world\",\"password\":\"[FILTERED]\"}",
@@ -386,7 +386,7 @@ If you want to log 499 and 50x errors in nginx, which will not be captured by Ru
386
386
  log_format kiev '{"application":"app_name", "event":"request_finished",'
387
387
  '"timestamp":"$time_iso8601", "request_id":"$http_x_request_id",'
388
388
  '"user_agent":"$http_user_agent", "status":$status,'
389
- '"request_duration_seconds":$request_time, "request_host":"$host",'
389
+ '"request_duration_seconds":$request_time, "host":"$host",'
390
390
  '"verb":"$request_method", "path":"$request_uri", "tree_path": "$http_x_tree_path"}';
391
391
 
392
392
  log_format simple_log '$remote_addr - $remote_user [$time_local] '
@@ -85,7 +85,7 @@ module Kiev
85
85
  params = ParamFilter.filter(params, config.filtered_params, config.ignored_params)
86
86
 
87
87
  data = {
88
- request_host: request.host, # env["HTTP_HOST"] || env["HTTPS_HOST"],
88
+ host: request.host, # env["HTTP_HOST"] || env["HTTPS_HOST"],
89
89
  params: params.empty? ? nil : params, # env[Rack::QUERY_STRING],
90
90
  ip: request.ip, # split_http_x_forwarded_headers(env) || env["REMOTE_ADDR"]
91
91
  user_agent: env[HTTP_USER_AGENT],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kiev
4
- VERSION = "3.0.0"
4
+ VERSION = "4.0.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiev
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blacklane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-04 00:00:00.000000000 Z
11
+ date: 2018-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack