-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Add disable HTTP metrics endpoint metadata #56036
Conversation
src/Http/Http.Extensions/src/HttpMetricsEndpointConventionBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Http/Http.Extensions/src/HttpMetricsEndpointConventionBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
f3fa7d1
to
40dabd3
Compare
src/Http/Http.Extensions/src/HttpMetricsEndpointConventionBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
This is done and is ready for review. |
/// <summary> | ||
/// A marker interface which can be used to identify metadata that disables HTTP request duration metrics. | ||
/// </summary> | ||
public interface IDisableHttpMetricsMetadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the flag interface for? Relatedly, if there's only one concrete implementation, can we just use that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using interfaces for endpoint metadata is the normal pattern. The only implementation is an attribute. Internally, builder methods that add this metadata to the endpoint just add the attribute.
899f687
to
67924e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments inline but nothing that would block the PR in its present shape.
src/Http/Http.Extensions/src/HttpMetricsEndpointConventionBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
9a77edc
to
c89dad3
Compare
Fixes #56039
Fixes #50654