semantic_logger_ecs_addon 0.1.11 → 0.1.12

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: e8352af461ec411f9248c88450b7a7740f67f6a645fe108f3392809e7ac7ac71
4
- data.tar.gz: 021a3c454c560442a1cc0a240b6c5cdb8a9e8f2f8134819094f99405d6dac0eb
3
+ metadata.gz: 1e0a6e782e73897614ae1bd76e9b7c59f94d28a3a60e2cfbf22ed2209e505ac7
4
+ data.tar.gz: 47eed3029664c86ebd8bac1dd16146b9685787c064e6048af62f28e4cfc43df5
5
5
  SHA512:
6
- metadata.gz: '09c1d3cddb5070315d393739fd083e0e16788c509c7f5ec29411b581d2cea865e494bec4215208ad2f10e404cd9c45ea419b8d6d07efe150587b179a9ec25762'
7
- data.tar.gz: dfe937ccff617890e4fa6a4854cfecc5d5b63a49173051629d49f273baf18830ddf3e577c11e82e26e1b55f638e8da26f19d08b08d485741ec1a8be348070263
6
+ metadata.gz: 767d6b40db82d541e7292ac2467f4d355e6dacdac7102bb1b7fe0576337d41129e2f70766ab0bb7d5729702a7ae8479708947489e4c1d892af03ca67de892835
7
+ data.tar.gz: 4777970e9fd90fb3e0706305548364e3a3d4ac1974536eb45df1627c73f12598d28fd2ce944f2bfdf26ae8149a47f5ddf92ab27ac6c88382ac99566d71837974
checksums.yaml.gz.sig CHANGED
Binary file
@@ -164,7 +164,7 @@ module SemanticLoggerEcsAddon
164
164
  end
165
165
 
166
166
  def format_payload
167
- if log.payload.respond_to?(:empty?) && !log.payload.empty?
167
+ if log.payload.respond_to?(:empty?) && !log.payload.empty? && log.payload.respond_to?(:has_key?)
168
168
  self.formatted_payload = Utils::Hash[**log.payload]
169
169
 
170
170
  rack_extract
@@ -203,7 +203,7 @@ module SemanticLoggerEcsAddon
203
203
  def apm_agent_present_and_running?
204
204
  return false unless defined?(::ElasticAPM)
205
205
 
206
- ElasticAPM.running?
206
+ ::ElasticAPM.running?
207
207
  end
208
208
  end
209
209
  end
@@ -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.11"
8
+ VERSION = "0.1.12"
9
9
  VERSION_LABEL = "#{LABEL} #{VERSION}"
10
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
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.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sajeev Ramasamy
metadata.gz.sig CHANGED
Binary file