scout_apm_logging 0.0.10 → 0.0.11

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: 6d85bd807f130a6b0187f898a42d6d703a2c21d21a2aac03a7dcc4d1141e1b8e
4
- data.tar.gz: 936a7d718eb3f2d8b05d6694ab15b56dae548996d9dd24c7b4aca5a1eccadbbf
3
+ metadata.gz: 8bbd257d9d08bbe578c328b108c2ce42e488ae5f7f0577a2ce7a692bbf208ac0
4
+ data.tar.gz: f274d28b0e8485077d460cc5f00d259211a135e580fc5591cb84a04713650476
5
5
  SHA512:
6
- metadata.gz: 1c6765bc549891c2156e0d8d31b6d74862541a07685b9d81408ab14d65d5c42b83565c441a8c1520027f73db60bbb65b82778195ef358ec9a95a7b8c7bae60be
7
- data.tar.gz: eb22f6ab71fcd15e13f3725b999ae7597161ae5f716b00f0649a8d74535747df3426b09f7a0244521ac9e16c627a0120373a73791bef1cbbfa00914e59d63df5
6
+ metadata.gz: 120b0718b958634f0ba0b04ab122e4d8b6b2a743962b9089fbf309b0d97616107ebfcbab61dca6684d79079094d46f50cee1d4d27dfe2f4b945b4f6bdb9541da
7
+ data.tar.gz: b9fa5e1dcfbe6d005c17a4719c9f8c93750639915d81ba946f597662c101fe4edd2b732dd176a180e6f1043d3f8eda0b9c8f0c6f7cd6a51ff24c7e61203adfaf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.11
2
+ * Fix Scout layer capturing in log attributes for background jobs.
3
+
1
4
  ## 0.0.10
2
5
  * Remove capitalization from action name in the formatter, to match that of the standard format.
3
6
 
@@ -46,12 +46,18 @@ module ScoutApm
46
46
 
47
47
  name, action = layer.name.split('/')
48
48
 
49
- return {} unless name && action
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
- derived_value_of_scout_name = "#{updated_name}#{layer.type.capitalize}##{action}"
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ScoutApm
4
4
  module Logging
5
- VERSION = '0.0.10'
5
+ VERSION = '0.0.11'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_apm_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scout APM