Skip to content

Commit

Permalink
Merge pull request #198 from zhiyan114/master
Browse files Browse the repository at this point in the history
Potential Transaction fix
  • Loading branch information
zhiyan114 authored Oct 25, 2024
2 parents 66e9da0 + c01b592 commit 0df0b21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/DiscordUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0df0b21

Please sign in to comment.