Add Progressive failover mode to the failover connector #43139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the progressive failover mode to the failover connector. This failover mode is categorized by an iterative approach to failover routing, where on each export the connector will try to route to each exporter in the priority list, terminating at the first successful export.
On each export the conenctor will try to route the data to traces/first, is that pipeline returns an error, it will then try to export to traces/second, if that succeeds the export is considered successful, if it fails it will then move on to trying traces/third. Regardless of the result of this export, the next export will still initially retry from traces/first.
PR #43094 is a pre-req for this PR as it introduces failover modes
Testing
Added the test TestProgressiveModeAlwaysTriesAllConsumers to test the progressive consume loop.