12 lines
308 B
C#
12 lines
308 B
C#
using Tiku.Infrastructure.Observability;
|
|
|
|
namespace Tiku.Api.Middleware;
|
|
|
|
public sealed class DatabaseRequestMetricsMiddleware(RequestDelegate next)
|
|
{
|
|
public async Task InvokeAsync(HttpContext context)
|
|
{
|
|
using var metrics = DatabaseRequestMetrics.Begin();
|
|
await next(context);
|
|
}
|
|
} |