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

Add disable HTTP metrics endpoint metadata #56036

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Jun 3, 2024

Fixes #56039
Fixes #50654

@JamesNK JamesNK added the area-hosting Includes Hosting label Jun 3, 2024
@JamesNK JamesNK force-pushed the jamesnk/disablehttpmetricsmetadata branch from f3fa7d1 to 40dabd3 Compare June 27, 2024 09:01
@JamesNK JamesNK marked this pull request as ready for review June 27, 2024 10:30
@JamesNK
Copy link
Member Author

JamesNK commented Jul 2, 2024

This is done and is ready for review.

@JamesNK JamesNK requested review from amcasey and mgravell July 4, 2024 02:22
/// <summary>
/// A marker interface which can be used to identify metadata that disables HTTP request duration metrics.
/// </summary>
public interface IDisableHttpMetricsMetadata
Copy link
Member

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?

Copy link
Member Author

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.

@JamesNK JamesNK force-pushed the jamesnk/disablehttpmetricsmetadata branch from 899f687 to 67924e5 Compare July 9, 2024 01:17
Copy link
Member

@captainsafia captainsafia left a 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.

@JamesNK JamesNK force-pushed the jamesnk/disablehttpmetricsmetadata branch from 9a77edc to c89dad3 Compare July 12, 2024 07:14
@JamesNK JamesNK enabled auto-merge (squash) July 12, 2024 07:19
@JamesNK JamesNK merged commit 639952a into main Jul 12, 2024
26 checks passed
@JamesNK JamesNK deleted the jamesnk/disablehttpmetricsmetadata branch July 12, 2024 09:54
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-preview7 milestone Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-hosting Includes Hosting
Projects
None yet
5 participants