-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
We should consider adding some kind privacy-preserving app tracking.
It should be opt-in and clearly stated to only be used to know where common pitfalls are etc.
- Initial support for sentry.
- Make UI changes on how to add tracking.
- Come up with list of items that have to be tracked.
- Come up with a scalable way to actually throw sentry exceptions.
Here is an example where we capture an exception with sentry.
export const sendLnaddr = async (
addr: string,
amountSat: number,
comment: string,
): Promise<LnurlPaymentResult> => {
try {
const result = await sendLnaddrNitro(addr, amountSat, comment);
return result;
} catch (error) {
console.error("Failed to send to lightning address:", error);
Sentry.captureException(
new Error(
`Failed to send to lightning address: ${error instanceof Error ? error.message : String(error)}`,
),
);
throw new Error(
`Failed to send to lightning address: ${
error instanceof Error ? error.message : String(error)
}`,
);
}
};
Metadata
Metadata
Assignees
Labels
No labels