Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(next): add sentry to payments-next #17550

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

StaberindeZA
Copy link
Contributor

Because

  • Be able to use Sentry in Next.js on both the client and the server

This pull request

  • Add Sentry to payments-next using the installation wizard

Issue that this pull request solves

Closes: #FXA-9998

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

@StaberindeZA StaberindeZA requested a review from a team as a code owner September 6, 2024 20:05
@StaberindeZA StaberindeZA marked this pull request as draft September 6, 2024 20:09
apps/payments/next/app/sentry-example/page.tsx Outdated Show resolved Hide resolved
apps/payments/next/app/global-error.tsx Show resolved Hide resolved
@@ -276,7 +277,8 @@
"tap/typescript": "^4.5.2",
"terser:>4.0.0 <5": ">=4.8.1",
"terser:>5 <6": ">=5.14.2",
"underscore": ">=1.13.2"
"underscore": ">=1.13.2",
"@sentry/types": "^7.113.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed once #17505 is merged.

@@ -61,6 +61,7 @@
"@fxa/shared/pem-jwk": ["libs/shared/pem-jwk/src/index.ts"],
"@fxa/shared/react": ["libs/shared/react/src/index.ts"],
"@fxa/shared/sentry": ["libs/shared/sentry/src/index.ts"],
"@fxa/shared/sentry/client": ["libs/shared/sentry/src/client.ts"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some modules in shared-sentry require modules only available in a node environment, such as fs, which are not available on the client (browser). Therefore a separate client barrel file is required which would not include these modules.

@StaberindeZA StaberindeZA force-pushed the fxa-9998-add-sentry-payments branch 3 times, most recently from 69cc7bf to fe1c51e Compare September 9, 2024 15:25
@StaberindeZA StaberindeZA marked this pull request as ready for review September 9, 2024 15:28
Because:

- Be able to use Sentry in Next.js on both the client and the server

This commit:

- Add Sentry to payments-next using the installation wizard

Closes #FXA-9998
@StaberindeZA StaberindeZA merged commit 73bd174 into main Sep 9, 2024
24 checks passed
@StaberindeZA StaberindeZA deleted the fxa-9998-add-sentry-payments branch September 9, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants