Log stats worker when it not closable. (#4313)

This commit is contained in:
Raja Subramanian
2026-02-11 13:18:34 +05:30
committed by GitHub
parent a6035212f5
commit 77c858f001
2 changed files with 31 additions and 1 deletions
+9 -1
View File
@@ -132,7 +132,6 @@ func (t *telemetryService) ParticipantActive(
guard,
)
if !found {
// need to also account for participant count
prometheus.AddParticipant()
}
worker.SetConnected()
@@ -193,6 +192,15 @@ func (t *telemetryService) ParticipantLeft(ctx context.Context,
isConnected = worker.IsConnected()
if worker.Close(guard) {
prometheus.SubParticipant()
} else {
logger.Infow(
"stats worker active",
"room", room.Name,
"roomID", room.Sid,
"participant", participant.Identity,
"pID", participant.Sid,
"worker", worker,
)
}
}