Skip whole block if no otel instance
This commit is contained in:
@@ -176,7 +176,8 @@ export class OTelGroupCallMembership {
|
|||||||
for (const [userId, userCalls] of calls.entries()) {
|
for (const [userId, userCalls] of calls.entries()) {
|
||||||
for (const [deviceId, call] of userCalls.entries()) {
|
for (const [deviceId, call] of userCalls.entries()) {
|
||||||
if (!this.callsByCallId.has(call.callId)) {
|
if (!this.callsByCallId.has(call.callId)) {
|
||||||
const span = ElementCallOpenTelemetry.instance?.tracer.startSpan(
|
if (ElementCallOpenTelemetry.instance) {
|
||||||
|
const span = ElementCallOpenTelemetry.instance.tracer.startSpan(
|
||||||
`matrix.call`,
|
`matrix.call`,
|
||||||
undefined,
|
undefined,
|
||||||
this.groupCallContext
|
this.groupCallContext
|
||||||
@@ -194,6 +195,7 @@ export class OTelGroupCallMembership {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (const callTrackingInfo of this.callsByCallId.values()) {
|
for (const callTrackingInfo of this.callsByCallId.values()) {
|
||||||
const userCalls = calls.get(callTrackingInfo.userId);
|
const userCalls = calls.get(callTrackingInfo.userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user