Add private_channels_version to client_state in identity. also set sentry user in gateway

This commit is contained in:
Madeline
2022-10-31 12:16:15 +11:00
parent 5a5a20c203
commit 1cacd4413a
4 changed files with 44 additions and 933 deletions
+6 -1
View File
@@ -53,11 +53,16 @@ export async function Message(this: WebSocket, buffer: WS.Data) {
try {
var ret = await OPCodeHandler.call(this, data);
transaction?.finish();
Sentry.withScope((scope) => {
scope.setSpan(transaction);
scope.setUser({ id: this.user_id });
transaction?.finish();
});
return ret;
} catch (error) {
Sentry.withScope((scope) => {
scope.setSpan(transaction);
if (this.user_id) scope.setUser({ id: this.user_id });
Sentry.captureException(error);
});
transaction?.finish();