chili_logger 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/chili_logger/version.rb +1 -1
- data/lib/helpers/logs_coverage/coverage_writer.rb +2 -3
- data/lib/message_writer/aws_ops_metadata.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12fce704cc86d96f2c9a4f140d57d8f12c57b048a6abfec1ef15e1841a7df40f
|
4
|
+
data.tar.gz: 96027ffc004a5d4270eea836f4830f6a9e33da4dea94b01f0d87044860441024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e23c0ba18ea16203c6084ad2c1c5ba7bb8846800cd2a087cc58836f098b36f7098557ea7a1757a0c1a8156afbbf08ac25e5f2de8417b782dff8f3073bcd2da24
|
7
|
+
data.tar.gz: 76df33e958cf2ff840a0ea28bc674bd5c702f7843c209eac75063edf23178c71a8d3763b580ba3ccda4dc2da744b19be42c2e9e3283ac5df6402231e3b865560
|
data/README.md
CHANGED
@@ -167,6 +167,7 @@ Also a tagging attribute, tells what type of log it is. Chiligum has 3 main type
|
|
167
167
|
- `transaction` is used for logging transactions made by users, such as creating a campaign, uploading a file to the gallery, etc...
|
168
168
|
- `uncaught_error` is used for logging internal server errors and to help us find problematic points in our applications;
|
169
169
|
- `monitoring` is used to monitor the health of our servers, providing information such as CPU usage, uptime, etc...
|
170
|
+
- `log` is used to record steps of processing flowing among the platform layers, these records help debug and find errors.
|
170
171
|
|
171
172
|
ChiliLogger is concerned only with `transaction` and `uncaught_errors`, since they are the only ones that can be generated in the application itself. Monitoring logs are created by other monitoring services, like ElasticSearch Beats or AWS Cloudwatch.
|
172
173
|
|
data/lib/chili_logger/version.rb
CHANGED
@@ -14,10 +14,9 @@ class ChiliLogger
|
|
14
14
|
service = desc[:service] || default.service
|
15
15
|
action = desc[:action] || default.action
|
16
16
|
keys = [type, service, action]
|
17
|
+
# coverage = add_nested_value(coverage, keys, backtrace)
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
write_file(coverage)
|
19
|
+
# write_file(coverage)
|
21
20
|
end
|
22
21
|
|
23
22
|
def self.read_file
|
@@ -18,7 +18,7 @@ class ChiliLogger
|
|
18
18
|
block_device_mapping: aws_metadata('block-device-mapping/'),
|
19
19
|
events: aws_metadata('events/'),
|
20
20
|
hostname: aws_metadata('hostname'),
|
21
|
-
iam: aws_metadata('iam/'),
|
21
|
+
# iam: aws_metadata('iam/'),
|
22
22
|
instance_action: aws_metadata('instance-action'),
|
23
23
|
instance_id: aws_metadata('instance-id'),
|
24
24
|
instance_type: aws_metadata('instance-type'),
|
@@ -31,7 +31,7 @@ class ChiliLogger
|
|
31
31
|
profile: aws_metadata('profile'),
|
32
32
|
public_hostname: aws_metadata('public-hostname'),
|
33
33
|
public_ipv4: aws_metadata('public-ipv4'),
|
34
|
-
public_keys: aws_metadata('public-keys/'),
|
34
|
+
# public_keys: aws_metadata('public-keys/'),
|
35
35
|
reservation_id: aws_metadata('reservation-id'),
|
36
36
|
security_groups: aws_metadata('security-groups'),
|
37
37
|
services: aws_metadata('services/')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chili_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lucas sandeville
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-sqs
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
|
-
rubygems_version: 3.0.
|
133
|
+
rubygems_version: 3.0.8
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: placeholder
|