chili_logger 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5b2363b82656e3c48f6d43a0852494f65ec87a5c6844ea4227dd99fb077ff07
4
- data.tar.gz: 498615dc6cec442558b51135b9764ae1a58f51e551c7e5d58bcd34690bb0156d
3
+ metadata.gz: 12fce704cc86d96f2c9a4f140d57d8f12c57b048a6abfec1ef15e1841a7df40f
4
+ data.tar.gz: 96027ffc004a5d4270eea836f4830f6a9e33da4dea94b01f0d87044860441024
5
5
  SHA512:
6
- metadata.gz: e51b201b0a445c8b35e681ca7527fb4dd93d36b31a866a06d419dd54472a09ed90441bc8209b10c49640fe3725394e61cfc737afa94dc17bad953a06acc1e48e
7
- data.tar.gz: 94fc04f858499978f8853bc650ef0a1e0ec3cfe8f83972fc21610e5dbc53f4b8e934c5252b10260d1ca6c81e693b9c26c3ada01eb69b03ffd99cb4f60c2f84d9
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
 
@@ -1,3 +1,3 @@
1
1
  class ChiliLogger
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
@@ -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
- coverage = add_nested_value(coverage, keys, backtrace)
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
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-08-06 00:00:00.000000000 Z
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.6
133
+ rubygems_version: 3.0.8
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: placeholder