mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
add request size counters
This commit is contained in:
parent
1928a5f9b1
commit
32e9cf7795
4 changed files with 18 additions and 1 deletions
|
|
@ -33,6 +33,12 @@ public class FileStatisticsService : IHostedService
|
|||
}
|
||||
}
|
||||
|
||||
public void LogRequest(long requestSize)
|
||||
{
|
||||
_metrics.IncCounter(MetricsAPI.CounterFileRequests);
|
||||
_metrics.IncCounter(MetricsAPI.CounterFileRequestSize);
|
||||
}
|
||||
|
||||
public Task StartAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
_logger.LogInformation("Starting FileStatisticsService");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue