Improve gateway reliability and dashboard docs
This commit is contained in:
@@ -47,7 +47,7 @@ public sealed class EventStreamService(
|
||||
() =>
|
||||
{
|
||||
int depth = Interlocked.Increment(ref streamQueueDepth);
|
||||
metrics.SetEventQueueDepth(depth);
|
||||
metrics.SetGrpcEventStreamQueueDepth(depth);
|
||||
},
|
||||
streamCts.Token);
|
||||
|
||||
@@ -56,7 +56,7 @@ public sealed class EventStreamService(
|
||||
await foreach (MxEvent mxEvent in eventQueue.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
|
||||
{
|
||||
int depth = Math.Max(0, Interlocked.Decrement(ref streamQueueDepth));
|
||||
metrics.SetEventQueueDepth(depth);
|
||||
metrics.SetGrpcEventStreamQueueDepth(depth);
|
||||
yield return mxEvent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user