Commit ee9b5be
committed
Name Sidekiq delayed enqueues after their target
The server middleware decodes the Sidekiq delayed extensions' YAML
payload to name the perform transaction after the real target and
method, rather than the internal wrapper class. The client middleware
titled the enqueue event with the raw wrapper class instead, so the
enqueue and perform of the same delayed job read different names.
Extract that name resolution into a `SidekiqActionName` module shared by
both middlewares, and title the enqueue event with it. The two sides now
agree on the name.
Decoding the payload means deserializing YAML on the enqueue path, but
that is the same YAML the server middleware already deserializes, and it
runs only for delayed extension jobs. At enqueue the payload is the one
we just built locally, so it carries no trust or missing-constant risk
the perform side isn't already taking.1 parent 5e9f3e1 commit ee9b5be
3 files changed
Lines changed: 122 additions & 36 deletions
File tree
- .changesets
- lib/appsignal/integrations
- spec/lib/appsignal/integrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
52 | 101 | | |
53 | 102 | | |
54 | 103 | | |
| |||
65 | 114 | | |
66 | 115 | | |
67 | 116 | | |
68 | | - | |
| 117 | + | |
| 118 | + | |
69 | 119 | | |
70 | 120 | | |
71 | 121 | | |
| |||
144 | 194 | | |
145 | 195 | | |
146 | 196 | | |
147 | | - | |
| 197 | + | |
148 | 198 | | |
149 | 199 | | |
150 | 200 | | |
| |||
163 | 213 | | |
164 | 214 | | |
165 | 215 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | 216 | | |
185 | 217 | | |
186 | 218 | | |
187 | 219 | | |
188 | 220 | | |
189 | | - | |
| 221 | + | |
190 | 222 | | |
191 | 223 | | |
192 | 224 | | |
| |||
199 | 231 | | |
200 | 232 | | |
201 | 233 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | 234 | | |
218 | 235 | | |
219 | 236 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
201 | 261 | | |
202 | 262 | | |
203 | 263 | | |
| |||
0 commit comments