mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Move call events to the call span
This commit is contained in:
parent
e870188be3
commit
277081ee2a
@ -205,13 +205,15 @@ export class OTelGroupCallMembership {
|
||||
const eventType = event.eventType as string;
|
||||
if (!eventType.startsWith("m.call")) return;
|
||||
|
||||
const callTrackingInfo = this.callsByCallId.get(call.callId);
|
||||
|
||||
if (event.type === "toDevice") {
|
||||
this.callMembershipSpan?.addEvent(
|
||||
callTrackingInfo.span.addEvent(
|
||||
`matrix.sendToDeviceEvent_${event.eventType}`,
|
||||
flattenVoipEvent(event)
|
||||
);
|
||||
} else if (event.type === "sendEvent") {
|
||||
this.callMembershipSpan?.addEvent(
|
||||
callTrackingInfo.span.addEvent(
|
||||
`matrix.sendToRoomEvent_${event.eventType}`,
|
||||
flattenVoipEvent(event)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user