Don't pass null / undefined as attribute value
This commit is contained in:
parent
3a7983d2de
commit
30f75c6cd2
2 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@ receivers:
|
||||||
# This can't be '*' because opentelemetry-js uses sendBeacon which always operates
|
# 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 '*'
|
# in 'withCredentials' mode, which browsers don't allow with an allow-origin of '*'
|
||||||
#- "https://pr976--element-call.netlify.app"
|
#- "https://pr976--element-call.netlify.app"
|
||||||
- "https://*"
|
- "http://*"
|
||||||
allowed_headers:
|
allowed_headers:
|
||||||
- "*"
|
- "*"
|
||||||
processors:
|
processors:
|
||||||
|
|
|
@ -171,7 +171,8 @@ export class OTelGroupCallMembership {
|
||||||
span.setAttribute("matrix.call.target.userId", userId);
|
span.setAttribute("matrix.call.target.userId", userId);
|
||||||
span.setAttribute("matrix.call.target.deviceId", deviceId);
|
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);
|
span.setAttribute("matrix.call.target.displayName", displayName);
|
||||||
this.callsByCallId.set(call.callId, {
|
this.callsByCallId.set(call.callId, {
|
||||||
userId,
|
userId,
|
||||||
|
|
Loading…
Reference in a new issue