Use attempt_threshold to skip reporting on first N attempts#2503
Use attempt_threshold to skip reporting on first N attempts#2503solnic merged 2 commits intogetsentry:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2503 +/- ##
=======================================
Coverage 98.18% 98.18%
=======================================
Files 128 128
Lines 4837 4845 +8
=======================================
+ Hits 4749 4757 +8
Misses 88 88
|
solnic
left a comment
There was a problem hiding this comment.
Thank you, this LGTM. Could you update the CHANGELOG.md (top level one) too so that we can get a green build?
97f9969 to
aaf5a0c
Compare
aaf5a0c to
2181e70
Compare
|
@solnic sorry for the delay. Updated! |
|
What's the intended interaction with I think it would be useful if when What do you think? It's just a matter of flipping the order of the conditionals. |
|
personally I have no objection to that... I think my use case would be supported either way! |
|
Any reasons this is not documented anywhere? |
@Linuus good point, we should definitely document this and related features as it's kinda tricky 😅 I'll make sure we get it done! |
Thanks :) I was mostly curious if it was some beta/internal thing. Just to make sure we don't depend on something we shouldn't. |
|
@Linuus oh, sorry about the confusion. Let me clarify then - it is a first-class feature and you can rely on this 🙂 |
|
One issue with this solution is it means jobs that are out of the developer's control (e.g. |
This is an implementation for #1632.
I am bringing over the concept of
attempt_thresholdfrom Honeybadger.Retry counting is a bit tricky, and so I included a comment based on a GH comment from Honeybadger.
There are two relatively arbitrary decisions I made here that you should validate:
attempt_threshold. Alternatively, we could skip until number of attempts is greater thanattempt_threshold.Thanks for your consideration!