Peer connections count in posthog media summary (#1046)
This commit is contained in:
parent
f0f2ffe972
commit
172ff266a6
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,7 @@ export class PosthogSpanProcessor implements SpanProcessor {
|
|||
const audioReceived = `${attributes["matrix.stats.summary.percentageReceivedAudioMedia"]}`;
|
||||
const maxJitter = `${attributes["matrix.stats.summary.maxJitter"]}`;
|
||||
const maxPacketLoss = `${attributes["matrix.stats.summary.maxPacketLoss"]}`;
|
||||
const peerConnections = `${attributes["matrix.stats.summary.peerConnections"]}`;
|
||||
const percentageConcealedAudio = `${attributes["matrix.stats.summary.percentageConcealedAudio"]}`;
|
||||
PosthogAnalytics.instance.trackEvent(
|
||||
{
|
||||
|
@ -134,6 +135,7 @@ export class PosthogSpanProcessor implements SpanProcessor {
|
|||
videoReceived: videoReceived,
|
||||
maxJitter: maxJitter,
|
||||
maxPacketLoss: maxPacketLoss,
|
||||
peerConnections: peerConnections,
|
||||
percentageConcealedAudio: percentageConcealedAudio,
|
||||
},
|
||||
// Send instantly because the window might be closing
|
||||
|
|
Loading…
Add table
Reference in a new issue