-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
⌚ Not TriagedSource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcfundamentals/subsvc
Description
Description
In the documentation the suggested way to listen to such events is subscribing to the DiagnosticListener and filtering this event "Microsoft.AspNetCore.Server.Kestrel.BadRequest", in a .net7 project this works but since .net8 this stopped working. Currently there is no way to listen to these events through the code, the diagnostic listener does not fire any event for these rejected requests. There is the metrics feature but it's another process that needs to run alongside the asp server and poll it.
I would love to know if there is another way because I could not find anything about this at all. No discussions no nothing.
Page URL
Content source URL
Document ID
6842867b-1533-7a03-902d-c573adc9a371
Article author
Metadata
Metadata
Assignees
Labels
⌚ Not TriagedSource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcfundamentals/subsvc