Merge pull request #980 from vector-im/dbkr/display_name_on_call_spans

Add displayname on call spans
This commit is contained in:
David Baker
2023-04-04 10:26:24 +01:00
committed by GitHub
2 changed files with 5 additions and 1 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

@@ -170,6 +170,10 @@ export class OTelGroupCallMembership {
// XXX: anonymity
span.setAttribute("matrix.call.target.userId", userId);
span.setAttribute("matrix.call.target.deviceId", deviceId);
const displayName =
this.groupCall.room.getMember(userId)?.name ?? "unknown";
span.setAttribute("matrix.call.target.displayName", displayName);
this.callsByCallId.set(call.callId, {
userId,
deviceId,