move webrtc etc. events from groupCall to matrix.call span (#1080)

* add new linked span for connection stats

* move stats span under call span and add user attribute

* Update matrix-js-sdk
This commit is contained in:
Enrico Schwendig
2023-06-06 08:28:53 +02:00
committed by GitHub
parent b1a5417b63
commit f0a6f5919e
5 changed files with 184 additions and 150 deletions

View File

@@ -23,16 +23,12 @@ import {
} from "matrix-js-sdk/src/webrtc/stats/statsReport";
export class ObjectFlattener {
public static flattenConnectionStatsReportObject(
statsReport: GroupCallStatsReport<ConnectionStatsReport>
public static flattenReportObject(
prefix: string,
report: ConnectionStatsReport | ByteSentStatsReport
): Attributes {
const flatObject = {};
ObjectFlattener.flattenObjectRecursive(
statsReport.report,
flatObject,
"matrix.stats.conn.",
0
);
ObjectFlattener.flattenObjectRecursive(report, flatObject, `${prefix}.`, 0);
return flatObject;
}