summary refs log tree commit diff
path: root/src/gateway/events/Message.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gateway/events/Message.ts (renamed from gateway/src/events/Message.ts)20
1 files changed, 10 insertions, 10 deletions
diff --git a/gateway/src/events/Message.ts b/src/gateway/events/Message.ts

index b72ffa37..db7dbad2 100644 --- a/gateway/src/events/Message.ts +++ b/src/gateway/events/Message.ts
@@ -51,22 +51,22 @@ export async function Message(this: WebSocket, buffer: WS.Data) { return; } - const transaction = Sentry.startTransaction({ - op: OPCODES[data.op], - name: `GATEWAY ${OPCODES[data.op]}`, - data: { - ...data.d, - token: data?.d?.token ? "[Redacted]" : undefined, - }, - }); + // const transaction = Sentry.startTransaction({ + // op: OPCODES[data.op], + // name: `GATEWAY ${OPCODES[data.op]}`, + // data: { + // ...data.d, + // token: data?.d?.token ? "[Redacted]" : undefined, + // }, + // }); try { var ret = await OPCodeHandler.call(this, data); - transaction.finish(); + // transaction.finish(); return ret; } catch (error) { Sentry.captureException(error); - transaction.finish(); + // transaction.finish(); console.error(`Error: Op ${data.op}`, error); // if (!this.CLOSED && this.CLOSING) return this.close(CLOSECODES.Unknown_error);