Merge pull request #980 from vector-im/dbkr/display_name_on_call_spans
Add displayname on call spans
This commit is contained in:
commit
29223b62ad
2 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue