zuora_observability 0.3.3 → 0.3.4

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: 4c138e8fa24ec1a1bc4f348c5b03d9290d5ba1c82a23d31ee3893d2cd1ea3d99
4
- data.tar.gz: 3d877492d7a316f48f7874429c23699a293cff8be5c2d72c07cf4342afb9ec77
3
+ metadata.gz: 91f680541f7eca83fa2a24aa721bb70c36b266e3ed2688b4311d4aa357cba5a8
4
+ data.tar.gz: 73bba0de9a68376e11484881afcc38280a0f6b7aa53ffba1cf9c8013289f42d5
5
5
  SHA512:
6
- metadata.gz: e70ddf07824d1a18edf90306696e27b686b48a1af4cb50a4f42ba3ee0fa1c43d5a55553a1e2d5bad1deca9b88e9fc94320fc37e6157f64aded958293988923a5
7
- data.tar.gz: 71c1eb29ea25f069495c69165b090b6650a615668219dc732b7421a4873ee659ca75331b8aa68bc679b6d1a00dc41e687e62f06e8fa75cd197803edefc3feb88
6
+ metadata.gz: e36d3484052f8a857aaf17fac5fb2c142e6f6370ff9b0d19ae6a8088948e2920c9d524bd737303a790bd060f2205c8d14cb2b0a500e30ef579a8c52a52af6592
7
+ data.tar.gz: d0921b1f65bc227f695f995f657732e38c549a53f89a4b967df89d2e669b99d30b88d392e8d0bb1a4b9535a747de3db5c22ee203cf76ac918e17875905f29210
@@ -5,13 +5,19 @@ module ActiveSupport
5
5
  # Patch to apply structured tags to Tagged Logs
6
6
  module Formatter
7
7
  def call(severity, timestamp, progname, data)
8
- super(severity, timestamp, progname, merged_tags.merge(data))
8
+ super(severity, timestamp, progname, merged_tags.merge!(data))
9
9
  end
10
10
 
11
11
  private
12
12
 
13
13
  def merged_tags
14
- current_tags.reduce(:merge) || {}
14
+ tags = {}
15
+
16
+ current_tags.each do |tag|
17
+ tags.merge!(tag) if tag.is_a?(Hash)
18
+ end
19
+
20
+ tags
15
21
  end
16
22
  end
17
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraObservability
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_observability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hartley McGuire
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-04 00:00:00.000000000 Z
11
+ date: 2021-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lograge