Commit ceae760
Collector plugin do not send error to consumer
Summary:
Below has a collector plugin framework to collect extra data async. Currently if the collector fails (timeout, incorrect config, dependency missing etc), an error is returned to the collecting thread, and also stored as a shared value later retrieved by the consumer (main) thread. When the consumer sees the error, the whole sample fails.
This is undesirable because we already log the error in the collecting thread. Below follows the model that most failures result in a None field of the sample instead of failing the whole sample.
This diff updates to log the error in the collecting thread, and report None to the consumer for any error.
Differential Revision: D76748582
fbshipit-source-id: 96b095e215cedb8fbb176e6801a25751f047783b1 parent 9d940b9 commit ceae760
2 files changed
Lines changed: 29 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 278 | + | |
| 279 | + | |
289 | 280 | | |
290 | 281 | | |
291 | 282 | | |
| |||
320 | 311 | | |
321 | 312 | | |
322 | 313 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
| 314 | + | |
329 | 315 | | |
330 | 316 | | |
331 | 317 | | |
| |||
396 | 382 | | |
397 | 383 | | |
398 | 384 | | |
399 | | - | |
| 385 | + | |
400 | 386 | | |
401 | 387 | | |
402 | 388 | | |
403 | 389 | | |
404 | | - | |
405 | | - | |
| 390 | + | |
| 391 | + | |
406 | 392 | | |
407 | 393 | | |
408 | 394 | | |
| |||
448 | 434 | | |
449 | 435 | | |
450 | 436 | | |
451 | | - | |
452 | | - | |
| 437 | + | |
| 438 | + | |
453 | 439 | | |
454 | 440 | | |
455 | 441 | | |
456 | 442 | | |
457 | 443 | | |
458 | 444 | | |
459 | 445 | | |
460 | | - | |
461 | | - | |
| 446 | + | |
| 447 | + | |
462 | 448 | | |
463 | 449 | | |
464 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | | - | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 63 | + | |
| 64 | + | |
76 | 65 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 66 | + | |
| 67 | + | |
80 | 68 | | |
81 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
82 | 73 | | |
83 | 74 | | |
84 | 75 | | |
| |||
93 | 84 | | |
94 | 85 | | |
95 | 86 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 87 | + | |
| 88 | + | |
103 | 89 | | |
104 | 90 | | |
105 | 91 | | |
| |||
169 | 155 | | |
170 | 156 | | |
171 | 157 | | |
172 | | - | |
| 158 | + | |
173 | 159 | | |
174 | 160 | | |
175 | 161 | | |
176 | | - | |
| 162 | + | |
177 | 163 | | |
178 | 164 | | |
179 | 165 | | |
180 | | - | |
| 166 | + | |
181 | 167 | | |
182 | 168 | | |
183 | 169 | | |
| |||
0 commit comments