Add `fail_if_body_too_large` http probe option
This can be used in conjunction with body_size_limit when it is expected that endpoints return a body larger than the specified limit, e.g. streaming endpoints that potentially return infinite data.
Do you want any changes here? Or is this a feature you don't want merged?
can you share more on the use-case? and what problem this flag will solve?
once I better understand the "why?" behind the change, I will find some time to review.
can you share more on the use-case? and what problem this flag will solve?
At work, we need to probe endpoints that endlessly stream data. Without this flag every probe will fail after some time, since Blackbox Exporter expects the data stream to finish otherwise. We want to measure successful requests and "time to X bytes".
please rebase to fix the failing CI.
Sorry for the delay, added the requested changes.
Fixed the DCO CI failures.
I don't think the test failures are related to my changes. Are they green on master?
Are they green on master?
yes, try rebasing on the latest main.
Hm... the branch is up2date.