mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
peer connections count in posthog media summary
This commit is contained in:
parent
6f4ab0d3ab
commit
e925e7e060
@ -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"]}`;
|
||||
PosthogAnalytics.instance.trackEvent(
|
||||
{
|
||||
eventName: "MediaReceived",
|
||||
@ -133,6 +134,7 @@ export class PosthogSpanProcessor implements SpanProcessor {
|
||||
videoReceived: videoReceived,
|
||||
maxJitter: maxJitter,
|
||||
maxPacketLoss: maxPacketLoss,
|
||||
peerConnections: peerConnections,
|
||||
},
|
||||
// Send instantly because the window might be closing
|
||||
{ send_instantly: true }
|
||||
|
Loading…
Reference in New Issue
Block a user