Skip to content

Commit

Permalink
feat: add custom tags to user error reports
Browse files Browse the repository at this point in the history
  • Loading branch information
ogous committed Sep 25, 2024
1 parent b6daf8e commit aa86a01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/components/ErrorReportingDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import * as Sentry from "@sentry/nextjs";
export default function ErrorReportingDialog() {
const { isOpen, setIsOpen, error, setError } = useErrorReportingStore();
async function handleError() {
Sentry.captureException(error);
Sentry.captureException(error, {
tags: {
userReport: "contracts",
},
});
// close dialog
setError(null);
setIsOpen(false);
Expand Down

0 comments on commit aa86a01

Please sign in to comment.