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 +4 -4
- data/config/initializers/tagged_logging.rb +8 -2
- data/lib/zuora_observability/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91f680541f7eca83fa2a24aa721bb70c36b266e3ed2688b4311d4aa357cba5a8
|
4
|
+
data.tar.gz: 73bba0de9a68376e11484881afcc38280a0f6b7aa53ffba1cf9c8013289f42d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2021-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lograge
|