semantic_logger_ecs_addon 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/lib/semantic_logger_ecs_addon/formatters/base.rb +6 -4
- data/lib/semantic_logger_ecs_addon/identity.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c737f17a901802f4dc4489f49060bc1905d29bac92978d044ed819325b470589
|
4
|
+
data.tar.gz: 87d0e96cddceefaa89f3fdcf98e33be743c74d4513bbbdd2f07dd76cd6b85ce0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0492a1e95e2d56ff67313adbab5c06de1e6a27468f17fc5c688d8993fe5fa645dbdf2282f89fd7297c8d9b6581bb125129284c3e48dc02bcfc1e2a52a4cc92a
|
7
|
+
data.tar.gz: 4e72ea15867334218bda97eda2f74025ff522226d41bec7fd366c455e2fc5d0a9c050be2a909ee6ce68d257a8301397f668c91704b1e757ea13d40ca4ace36d8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�4K�#�
|
2
|
+
o��1���i}����
|
@@ -162,11 +162,13 @@ module SemanticLoggerEcsAddon
|
|
162
162
|
end
|
163
163
|
|
164
164
|
def format_payload
|
165
|
-
|
165
|
+
if log.payload.respond_to?(:empty?) && !log.payload.empty?
|
166
|
+
self.formatted_payload = Utils::Hash[**log.payload]
|
166
167
|
|
167
|
-
|
168
|
-
|
169
|
-
|
168
|
+
rack_extract
|
169
|
+
else
|
170
|
+
self.formatted_payload = {}
|
171
|
+
end
|
170
172
|
end
|
171
173
|
|
172
174
|
def request
|
@@ -5,7 +5,7 @@ module SemanticLoggerEcsAddon
|
|
5
5
|
module Identity
|
6
6
|
NAME = "semantic_logger_ecs_addon"
|
7
7
|
LABEL = "Semantic Logger Ecs Addon"
|
8
|
-
VERSION = "0.1.
|
8
|
+
VERSION = "0.1.1"
|
9
9
|
VERSION_LABEL = "#{LABEL} #{VERSION}"
|
10
10
|
SUMMARY = "A semantic logger formatter that formats the logs according to Elastic Common Schema and adds APM trace data if ElasticAPM is enabled."
|
11
11
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic_logger_ecs_addon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sajeev Ramasamy
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
ewungQjw99puFMSK2d/NFj2L2oSvamT0vGoiH63zwx02vLziB6Jbn34/tuDEqUQ9
|
35
35
|
WEUeG6yA2jP44YUZzNP+Xbjpzr/RvJxAmFw+7SNkHkmP3csIS+0TIg==
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2021-06-
|
37
|
+
date: 2021-06-28 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: semantic_logger
|
metadata.gz.sig
CHANGED
Binary file
|