feat: add full observability top of open telemetry collector

This commit is contained in:
Meysam Hadeli 2025-02-14 01:23:38 +03:30
parent 6ed7ee7409
commit 9f284b3604

View File

@ -55,12 +55,12 @@ public static class InfrastructureExtensions
partitionKey: httpContext.User.Identity?.Name ?? partitionKey: httpContext.User.Identity?.Name ??
httpContext.Request.Headers.Host.ToString(), httpContext.Request.Headers.Host.ToString(),
factory: partition => new FixedWindowRateLimiterOptions factory: partition => new FixedWindowRateLimiterOptions
{ {
AutoReplenishment = true, AutoReplenishment = true,
PermitLimit = 10, PermitLimit = 10,
QueueLimit = 0, QueueLimit = 0,
Window = TimeSpan.FromMinutes(1) Window = TimeSpan.FromMinutes(1)
})); }));
}); });
builder.Services.AddPersistMessageProcessor(); builder.Services.AddPersistMessageProcessor();