Add sdk lable to session start time and participant join (#4885)

This commit is contained in:
cnderrauber
2026-09-21 13:14:36 +08:00
committed by GitHub
parent d5c691836f
commit 885c869ffa
5 changed files with 32 additions and 32 deletions
+4 -4
View File
@@ -1480,9 +1480,9 @@ func (p *ParticipantImpl) recordRTCState(closeReason types.ParticipantCloseReaso
}
if p.IsConnectionCanceled(closeReason) {
prometheus.IncrementParticipantRtcCanceled(1, p.params.EnableWarp)
prometheus.IncrementParticipantRtcCanceled(1, p.params.EnableWarp, p.GetClientInfo().GetSdk())
} else {
prometheus.IncrementParticipantRtcFailure(1, p.params.EnableWarp)
prometheus.IncrementParticipantRtcFailure(1, p.params.EnableWarp, p.GetClientInfo().GetSdk())
}
}
@@ -2718,8 +2718,8 @@ func (p *ParticipantImpl) onPrimaryTransportInitialConnected() {
}
if !p.sessionStartRecorded.Swap(true) {
prometheus.RecordSessionStartTime(int(p.ProtocolVersion()), p.params.EnableWarp, time.Since(p.params.SessionStartTime))
prometheus.IncrementParticipantRtcSuccess(1, p.params.EnableWarp)
prometheus.RecordSessionStartTime(int(p.ProtocolVersion()), p.params.EnableWarp, p.GetClientInfo().GetSdk(), time.Since(p.params.SessionStartTime))
prometheus.IncrementParticipantRtcSuccess(1, p.params.EnableWarp, p.GetClientInfo().GetSdk())
}
p.updateState(livekit.ParticipantInfo_ACTIVE)
}