fix(localdb): telemetry review fixes — meter naming, snapshot status, session-count Connected
Claude-Session: https://claude.ai/code/session_01BL2Vu1ESDQ9SCN4gVKkdts
This commit is contained in:
@@ -88,7 +88,7 @@ public sealed class SyncBackgroundService : BackgroundService
|
||||
using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(stoppingToken);
|
||||
var (duplex, readerTask) = GrpcSyncDuplex.Create(call.ResponseStream, call.RequestStream, linkedCts.Token);
|
||||
var session = SyncSessionFactory.Create(_db, _options, _loggerFactory, _metrics, _status);
|
||||
_status?.SetConnected(true);
|
||||
_status?.SessionStarted();
|
||||
try
|
||||
{
|
||||
await session.RunAsync(duplex, linkedCts.Token);
|
||||
@@ -96,7 +96,7 @@ public sealed class SyncBackgroundService : BackgroundService
|
||||
}
|
||||
finally
|
||||
{
|
||||
_status?.SetConnected(false);
|
||||
_status?.SessionEnded();
|
||||
linkedCts.Cancel();
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user