Skip to content

Commit

Permalink
logging the request concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-zhur committed Jun 26, 2024
1 parent 5aeecd5 commit 6521693
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OneShelf.Common/OneShelf.Common.Api/ConcurrencyLimiter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public async Task<TResult> ExecuteOrThrow<TResult>(Func<Task<TResult>> taskGette
try
{
var value = Interlocked.Increment(ref _current);
_logger.LogInformation("Request concurrency: {concurrency}.", value);
if (value > _options.MaxConcurrency)
{
throw new ServiceConcurrencyException();
Expand Down

0 comments on commit 6521693

Please sign in to comment.