Don't pass null / undefined as attribute value

This commit is contained in:
David Baker 2023-04-03 17:41:40 +01:00
parent 3a7983d2de
commit 30f75c6cd2
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,7 @@ receivers:
# This can't be '*' because opentelemetry-js uses sendBeacon which always operates
# in 'withCredentials' mode, which browsers don't allow with an allow-origin of '*'
#- "https://pr976--element-call.netlify.app"
- "https://*"
- "http://*"
allowed_headers:
- "*"
processors:

View file

@ -171,7 +171,8 @@ export class OTelGroupCallMembership {
span.setAttribute("matrix.call.target.userId", userId);
span.setAttribute("matrix.call.target.deviceId", deviceId);
const displayName = this.groupCall.room.getMember(userId)?.name;
const displayName =
this.groupCall.room.getMember(userId)?.name ?? "unknown";
span.setAttribute("matrix.call.target.displayName", displayName);
this.callsByCallId.set(call.callId, {
userId,