extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Allow the Resilience package to access the TelemetryOptions of Polly for easier configuration

Open sander1095 opened this issue 1 year ago • 0 comments

The full context can be found here: https://github.com/App-vNext/Polly/issues/2162. In short:

Say we configure Polly to retry a HTTP request 3 times. Each time it fails, it logs an error. Say it would have succeeded the 3rd time. Then the errors (which might have triggered some alerts) were not truly errors, only warnings.

I would like to be able to configure Polly to only treat final attempts that fail as errors, and earlier retries to be configured as Warnings.

This is possible with https://github.com/App-vNext/Polly/pull/2072 but I don't seem to be able to edit this context/telemetry stuff when using the Resilience packages.

I would like to be able to modify Polly's severity levels for events.

sander1095 avatar Jun 24 '24 07:06 sander1095