Telemetry API
 
Loading...
Searching...
No Matches
TelemetryApi.Tests.ExcludeMetricsLoggingInterceptorTests Class Reference

Unit tests for the ExcludeMetricsLoggingInterceptor to ensure 100% code coverage. Verifies that specific requests (favicon and metrics) are silenced, while keeping standard requests logged. More...

Public Member Functions

async Task OnRequestAsync_EvaluatesPathsCorrectly (string path, HttpLoggingFields expectedFields)
 Verifies that any request to /favicon.ico or /metrics disables logging immediately upon request.
 
async Task OnResponseAsync_DoesNothing_ExecutesSuccessfully ()
 Verifies that the OnResponseAsync method executes without errors and does not alter the context.
 

Detailed Description

Unit tests for the ExcludeMetricsLoggingInterceptor to ensure 100% code coverage. Verifies that specific requests (favicon and metrics) are silenced, while keeping standard requests logged.


The documentation for this class was generated from the following file: