diff --git a/src/Hosting/Hosting/src/Internal/HostingTelemetryHelpers.cs b/src/Hosting/Hosting/src/Internal/HostingTelemetryHelpers.cs index b172a4b74b4d..6fcf46b73ce2 100644 --- a/src/Hosting/Hosting/src/Internal/HostingTelemetryHelpers.cs +++ b/src/Hosting/Hosting/src/Internal/HostingTelemetryHelpers.cs @@ -38,6 +38,7 @@ internal static class HostingTelemetryHelpers KeyValuePair.Create(HttpMethods.Patch, HttpMethods.Patch), KeyValuePair.Create(HttpMethods.Post, HttpMethods.Post), KeyValuePair.Create(HttpMethods.Put, HttpMethods.Put), + KeyValuePair.Create(HttpMethods.Query, HttpMethods.Query), KeyValuePair.Create(HttpMethods.Trace, HttpMethods.Trace) ], StringComparer.OrdinalIgnoreCase); diff --git a/src/Hosting/Hosting/test/HostingApplicationDiagnosticsTests.cs b/src/Hosting/Hosting/test/HostingApplicationDiagnosticsTests.cs index 73ad24d8358a..eef83fb502e3 100644 --- a/src/Hosting/Hosting/test/HostingApplicationDiagnosticsTests.cs +++ b/src/Hosting/Hosting/test/HostingApplicationDiagnosticsTests.cs @@ -1552,10 +1552,12 @@ public void ActivityListeners_SuccessStatusCodesNoErrorType(int statusCode) [InlineData("OPTIONS", null, "OPTIONS")] [InlineData("TRACE", null, "TRACE")] [InlineData("CONNECT", null, "CONNECT")] + [InlineData("QUERY", null, "QUERY")] [InlineData("CUSTOM", null, "HTTP")] [InlineData("weird", null, "HTTP")] [InlineData("GET", "hello/{name}", "GET hello/{name}")] [InlineData("POST", "hello/{name}", "POST hello/{name}")] + [InlineData("QUERY", "hello/{name}", "QUERY hello/{name}")] [InlineData("CUSTOM", "hello/{name}", "HTTP hello/{name}")] public void ActivityListeners_DisplayName(string method, string route, string expectedDisplayName) {