scout_apm 6.0.0 → 6.0.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f7da6e5dce565451022406d4bbf06ccba3eb60cca723d391886083584595ca8
|
|
4
|
+
data.tar.gz: a9001c043e9f4b7afb9c556474e0b50baecbb191a05bc3b308f85072443df914
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39de9f2fe98871ab474a43c784c9db73a800832e5ac6757004036065c0ea9f68955f36e953fa36249d5ce7d78c289aa9e373d8f01fe83c22c6987bd149eeab34
|
|
7
|
+
data.tar.gz: 588d9fad7ad1fe3084ed28b2ce9565cda61eb694389bfefae3f065ace19f09b463c5de801766ab105540385350ed8d8ee2e6be545842794b8f60821cc2f0d5b1
|
data/CHANGELOG.markdown
CHANGED
|
@@ -153,13 +153,16 @@ module ScoutApm
|
|
|
153
153
|
|
|
154
154
|
return if known_parameters.empty?
|
|
155
155
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
job_args = if msg["class"] == ACTIVE_JOB_KLASS
|
|
157
|
+
arguments = msg.fetch('args', [])
|
|
158
|
+
# Don't think this can actually happen. With perform_all_later,
|
|
159
|
+
# it appears we go through this middleware individually (even with multiples of the same job type).
|
|
160
|
+
return if arguments.length > 1
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
arguments.first.fetch('arguments', [])
|
|
163
|
+
else
|
|
164
|
+
msg.fetch('args', [])
|
|
165
|
+
end
|
|
163
166
|
|
|
164
167
|
# Reduce known parameters to just the ones that are present in the job arguments (excluding non altered optional params)
|
|
165
168
|
known_parameters = known_parameters[0...job_args.length]
|
data/lib/scout_apm/version.rb
CHANGED
|
@@ -153,7 +153,8 @@ class SidekiqTest < Minitest::Test
|
|
|
153
153
|
ScoutApm::Context.expects(:add).with({ user_id: 123, email: 'test@example.com', filter_param: '[FILTERED]', dict_val: '[UNSUPPORTED TYPE]' })
|
|
154
154
|
|
|
155
155
|
msg = {
|
|
156
|
-
|
|
156
|
+
"class" => SidekiqMiddleware::ACTIVE_JOB_KLASS,
|
|
157
|
+
"wrapped" => "TestJobWithArgs",
|
|
157
158
|
'args' => [{ 'arguments' => [123, 'test@example.com', 'secret', {a: 1}] }]
|
|
158
159
|
}
|
|
159
160
|
|