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);
    }
}