scout_apm_logging 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55f7d2c11024d2dba505a31f9a95face612da9befd41e70cce442655e5647711
4
- data.tar.gz: 0d4b6f542d73fd0b435296e465f814b1593d7d52ae5dd31d7b07965c3e52e2a6
3
+ metadata.gz: 8bbd257d9d08bbe578c328b108c2ce42e488ae5f7f0577a2ce7a692bbf208ac0
4
+ data.tar.gz: f274d28b0e8485077d460cc5f00d259211a135e580fc5591cb84a04713650476
5
5
  SHA512:
6
- metadata.gz: 35c113e4c84c336657d4a312385f7b23328518112be3f7a0a234eca56fd66422d264121dd0dbd19bf206ef309904ab9b3a4d40a4b50741185966979a8cb4c1a3
7
- data.tar.gz: 6e196f2c3625af8ecc6d898a653be40f1e61511e9e20a4b7a30f5a9efa93c3eba6fda5f6bbcb3d43546800ae64b5b1fdd879d697a57f9e4e740e82b4ee350a3e
6
+ metadata.gz: 120b0718b958634f0ba0b04ab122e4d8b6b2a743962b9089fbf309b0d97616107ebfcbab61dca6684d79079094d46f50cee1d4d27dfe2f4b945b4f6bdb9541da
7
+ data.tar.gz: b9fa5e1dcfbe6d005c17a4719c9f8c93750639915d81ba946f597662c101fe4edd2b732dd176a180e6f1043d3f8eda0b9c8f0c6f7cd6a51ff24c7e61203adfaf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.0.11
2
+ * Fix Scout layer capturing in log attributes for background jobs.
3
+
4
+ ## 0.0.10
5
+ * Remove capitalization from action name in the formatter, to match that of the standard format.
6
+
1
7
  ## 0.0.9
2
8
  * Add Scout Transaction ID to log attributes.
3
9
 
@@ -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.capitalize}"
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.9'
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.9
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scout APM