Skip to content

Polly's built-in OnHedging metric in resilience.polly.strategy.events doesn't match with custom metrics we record in onHedging action callback #2354

Answered by martintmk
lvxiaoxin asked this question in Q&A
Discussion options

You must be logged in to vote

If we look at this code:

private async Task HandleOnHedgingAsync(ResilienceContext primaryContext, int attemptNumber)

Notice, that path where OnHedging is called and where the telemetry is reported, is identical.

These metrics should be identical. Maybe you are collecting these differently?

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lvxiaoxin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants