mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-05 04:28:49 +08:00
feat: add full observability top of open telemetry collector
This commit is contained in:
parent
6ed7ee7409
commit
9f284b3604
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user