scout_apm_logging 0.0.9 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/scout_apm/logging/loggers/formatter.rb +8 -2
- data/lib/scout_apm/logging/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bbd257d9d08bbe578c328b108c2ce42e488ae5f7f0577a2ce7a692bbf208ac0
|
4
|
+
data.tar.gz: f274d28b0e8485077d460cc5f00d259211a135e580fc5591cb84a04713650476
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 120b0718b958634f0ba0b04ab122e4d8b6b2a743962b9089fbf309b0d97616107ebfcbab61dca6684d79079094d46f50cee1d4d27dfe2f4b945b4f6bdb9541da
|
7
|
+
data.tar.gz: b9fa5e1dcfbe6d005c17a4719c9f8c93750639915d81ba946f597662c101fe4edd2b732dd176a180e6f1043d3f8eda0b9c8f0c6f7cd6a51ff24c7e61203adfaf
|
data/CHANGELOG.md
CHANGED
@@ -46,12 +46,18 @@ module ScoutApm
|
|
46
46
|
|
47
47
|
name, action = layer.name.split('/')
|
48
48
|
|
49
|
-
return {} unless name
|
49
|
+
return {} unless name
|
50
50
|
|
51
51
|
updated_name = name.split('_').map(&:capitalize).join
|
52
52
|
|
53
53
|
derived_key = "#{layer.type.downcase}_entrypoint".to_sym
|
54
|
-
|
54
|
+
|
55
|
+
# For background jobs, we won't have an action.
|
56
|
+
derived_value_of_scout_name = if action
|
57
|
+
"#{updated_name}#{layer.type.capitalize}##{action}"
|
58
|
+
else
|
59
|
+
name
|
60
|
+
end
|
55
61
|
|
56
62
|
{ derived_key => derived_value_of_scout_name }
|
57
63
|
end
|