-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Diaganostics and metrics clean up #47679
Conversation
@@ -221,8 +257,7 @@ private class TestHttpActivityFeature : IHttpActivityFeature | |||
} | |||
|
|||
[Fact] | |||
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/38736")] |
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.
This quarantined test has been removed.
using var dummyActivity = dummySource.StartActivity("DummyActivity"); | ||
Assert.NotNull(dummyActivity); | ||
Assert.Equal(Activity.Current, dummyActivity); |
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.
Attempting to narrow down the cause of this flaky test.
b041e6c
to
d0554ea
Compare
Looks good so far, but will wait to approve until you've finished running down the flakey test. |
Don't need to hold up merging this.
|
This reverts commit f17ba95.
Some clean-up from #46834
Made
IHttpActivityFeature
andIHttpMetricsTagsFeature
behave consistently. The "owner" of the features responsible for setting them is hosting. This allows us to have a source of truth implementation which means we can access the underlyingList<T>
on metrics tags directly instead of going through the feature interface.Previously hosting would check if the server had an activity feature. Now, if the server sets the feature, it is overridden by hosting. This was probably done for testing. It's a change but very, very unlikely anyone would do this (implement a new server and choose to override
IHttpActivityFeature
).