semantic_logger_ecs_addon 0.1.4 → 0.1.6

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: eadf8edfbe1cf5c37a68f71eebb0d809f0cb9420c1e449902fe7c0a2bfbc0017
4
- data.tar.gz: fbb28cdbcedff8afffeae986ffec6a1df19d6da9c325563388235ea6b81de7f6
3
+ metadata.gz: ba75d521a4ff9817c0f359bf045b0cb1387cfc9d9c04655761c550cba1e3a064
4
+ data.tar.gz: 0e9625582f4f182129e8791dff144b2f46d36db717dd293b677ba1aac4787451
5
5
  SHA512:
6
- metadata.gz: 1d3dd9fa46fd383916609202e3fa68d405bff42debbbba4cea4e87fe1825707485abc4b94e89cb73a7036fbf9e08cc93be523b16a030f4aa7ee92095b6b4046a
7
- data.tar.gz: 539f0eb6e805d1db8923762fbd96d402b99a005cf7f97cd4cdbe49c571bdedc2c1ee7d8e5b741b8c543b0501256091485609180d3faf6fd4ca424b0827686346
6
+ metadata.gz: fe0fe150b4eef28b9df59b1ca9964e72b18d340308eeac146e75c3a57363b830e4eb82d7a74f28e384dce1c139bfb3284e759e718f4ac0520183b111421619b6
7
+ data.tar.gz: 4f4fcfcc2836b2a8d6018aee71b802b136091888104350649a0cbcd5bf975e4106a75a762e89e5366cb2b7aab91dd0aa230d76fc75cc58de3846db4f1f23d9ff
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RailsSemanticLogger
2
4
  module Sequel
3
5
  class LogSubscriber < ActiveSupport::LogSubscriber
@@ -5,8 +5,8 @@ module SemanticLoggerEcsAddon
5
5
  module Identity
6
6
  NAME = "semantic_logger_ecs_addon"
7
7
  LABEL = "Semantic Logger Ecs Addon"
8
- VERSION = "0.1.4"
8
+ VERSION = "0.1.6"
9
9
  VERSION_LABEL = "#{LABEL} #{VERSION}"
10
- SUMMARY = "A semantic logger formatter that formats the logs according to Elastic Common Schema and adds APM trace data if ElasticAPM is enabled."
10
+ SUMMARY = "A semantic logger formatter that formats the logs according to Elastic Common Schema, adds APM trace data if ElasticAPM is enabled and instruments sequel logs for rails if available."
11
11
  end
12
12
  end
@@ -2,13 +2,15 @@
2
2
 
3
3
  require "pathname"
4
4
  require "zeitwerk"
5
- if defined? ActiveSupport::LogSubscriber
6
- require_relative "rails_semantic_logger/sequel/log_subscriber"
5
+ if defined?(Sequel)
6
+ if defined? ActiveSupport::LogSubscriber
7
+ require_relative "rails_semantic_logger/sequel/log_subscriber"
8
+ end
9
+ if defined?(ActiveSupport::Notifications)
10
+ require_relative "sequel/database/active_support_notification"
11
+ end
12
+ require_relative "sequel/railties/controller_runtime" if defined?(ActionController)
7
13
  end
8
- if defined?(ActiveSupport::Notifications)
9
- require_relative "sequel/database/active_support_notification"
10
- end
11
- require_relative "sequel/railties/controller_runtime" if defined?(ActionController)
12
14
 
13
15
  loader = Zeitwerk::Loader.for_gem
14
16
  loader.setup
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "sequel/database/logging"
2
- # require "active_support/notifications"
4
+ require "active_support/notifications"
3
5
 
4
6
  module Sequel
5
7
  class Database
data.tar.gz.sig CHANGED
Binary file
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
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sajeev Ramasamy
@@ -36,6 +36,20 @@ cert_chain:
36
36
  -----END CERTIFICATE-----
37
37
  date: 2021-08-23 00:00:00.000000000 Z
38
38
  dependencies:
39
+ - !ruby/object:Gem::Dependency
40
+ name: request_store
41
+ requirement: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - "~>"
44
+ - !ruby/object:Gem::Version
45
+ version: '1.5'
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '1.5'
39
53
  - !ruby/object:Gem::Dependency
40
54
  name: semantic_logger
41
55
  requirement: !ruby/object:Gem::Requirement
@@ -115,5 +129,6 @@ rubygems_version: 3.2.22
115
129
  signing_key:
116
130
  specification_version: 4
117
131
  summary: A semantic logger formatter that formats the logs according to Elastic Common
118
- Schema and adds APM trace data if ElasticAPM is enabled.
132
+ Schema, adds APM trace data if ElasticAPM is enabled and instruments sequel logs
133
+ for rails if available.
119
134
  test_files: []
metadata.gz.sig CHANGED
Binary file