kiev 2.8.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/lib/kiev/rack/request_logger.rb +1 -1
- data/lib/kiev/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a4af5ecbba63c1047f216399bf8eed12d144f45a624e44dd9f165d17195e744c
|
|
4
|
+
data.tar.gz: '09a4f7f96577a537d7f8160b7697b2050698c7f7da725f9f82a395a978353657'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a3609ce3f0d8ff4c19c264c33310cb794fbac34947c1f56d6a796daea343e90868acc980652b66fb18cff747ae3dbfe53eeefb362df5ab7454fc26381a93997
|
|
7
|
+
data.tar.gz: 5901954627dbeec180b4946118765736004e7512ad5e8d232f72cd3903178fe735e0e931c38bfcae21c555612d4dd4ce1e388a7bbb3aa84d7d52aaf518b974b4
|
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
|
-
"
|
|
171
|
+
"request_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, "
|
|
389
|
+
'"request_duration_seconds":$request_time, "request_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
|
-
|
|
88
|
+
request_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],
|
data/lib/kiev/version.rb
CHANGED
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:
|
|
4
|
+
version: 3.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-
|
|
11
|
+
date: 2018-07-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|
|
@@ -214,9 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
214
214
|
version: '0'
|
|
215
215
|
requirements: []
|
|
216
216
|
rubyforge_project:
|
|
217
|
-
rubygems_version: 2.
|
|
217
|
+
rubygems_version: 2.7.7
|
|
218
218
|
signing_key:
|
|
219
219
|
specification_version: 4
|
|
220
220
|
summary: Distributed logging to JSON integrated with various Ruby frameworks and tools
|
|
221
221
|
test_files: []
|
|
222
|
-
has_rdoc:
|