From 61935a45c0440d25054a0b7684aa0bebbfba89b2 Mon Sep 17 00:00:00 2001 From: zhiyan114 Date: Wed, 23 Oct 2024 23:48:07 -0400 Subject: [PATCH 1/2] Final --- src/utils/DiscordUser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/DiscordUser.ts b/src/utils/DiscordUser.ts index 28425f6b..4c871e9c 100644 --- a/src/utils/DiscordUser.ts +++ b/src/utils/DiscordUser.ts @@ -269,7 +269,7 @@ export class DiscordUser { await this.client.logger.sendLog({ type: "Warning", message: "actionLog failed due to missing target in the database", - ...opt.metadata + metadata: opt.metadata, }); else captureException(ex); } From cdec78d3149fd4bab2f416fdb5990715d185e8c0 Mon Sep 17 00:00:00 2001 From: zhiyan114 Date: Thu, 24 Oct 2024 22:12:45 -0400 Subject: [PATCH 2/2] Prisma TX must be a child span --- src/loader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loader.ts b/src/loader.ts index 2b9e7518..9cabba9d 100644 --- a/src/loader.ts +++ b/src/loader.ts @@ -109,8 +109,8 @@ sentryInit({ return null; if(new RegExp("/test/").test(transaction.transaction ?? "")) return null; - // Drop spans without parent - if(transaction.spans?.[0]?.op === "default") + // Drop Prisma only transactions + if(transaction.transaction?.startsWith("prisma:")) return null; return transaction;