Skip to content

Privacy-preserving app tracking #13

@hsjoberg

Description

@hsjoberg

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions