Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop FailureResultContext #4600

Merged
merged 13 commits into from
Oct 24, 2023
Merged

Conversation

martintmk
Copy link
Contributor

@martintmk martintmk commented Oct 23, 2023

When going over #4482 I realized that FailureResultContext is something that is not required with Polly v8.

The idea behind FailureResultContext was to allow to customize the metering dimensions based on the result type. However, Polly v8 supports telemetry enrichment natively and this API feels unnecessary now.

Instead of using FailureResultContext, the consumer of Polly can just register their own MeteringEnricher and use it to extract the result and add whatever dimensions they want.

Microsoft Reviewers: Open in CodeFlow

@ghost ghost assigned martintmk Oct 23, 2023
@martintmk
Copy link
Contributor Author

cc @joperezr

@martintmk martintmk marked this pull request as ready for review October 24, 2023 07:16
@@ -20,7 +19,7 @@

<PropertyGroup>
<Stage>normal</Stage>
<MinCodeCoverage>98</MinCodeCoverage>
<MinCodeCoverage>97</MinCodeCoverage>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be at 100, but code coverage is reporting lower number :/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's been reported as
image

Because of this:
image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...though the validation script reports it as 97.38%...
image

@RussKie RussKie merged commit 65260e9 into release/8.0 Oct 24, 2023
6 checks passed
@RussKie RussKie deleted the mtomka/drop-failureresultcontext branch October 24, 2023 12:35
@ghost ghost locked as resolved and limited conversation to collaborators Nov 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants