-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@martintmk I feel you're well placed to answer this? |
Beta Was this translation helpful? Give feedback.
-
If we look at this code: 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? |
Beta Was this translation helpful? Give feedback.
-
Thanks @martintmk and @martincostello. Yes you are right. We originally looked into the It turns out that the difference comes from the way we collecting those metrics (one is sampling as count and another is not), leading to the mis-match between the built-in metric and my custom record metric. After I fixed that, the OnHedging metric of Thanks a lot for the help here! |
Beta Was this translation helpful? Give feedback.
If we look at this code:
Polly/src/Polly.Core/Hedging/Controller/TaskExecution.cs
Line 139 in 6f7edf8
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?