https://github.com/getsentry/sentry-javascript-examples
Example Apps for the Sentry JS SDKs
https://github.com/getsentry/sentry-javascript-examples
tag-non-production
Last synced: 3 months ago
JSON representation
Example Apps for the Sentry JS SDKs
- Host: GitHub
- URL: https://github.com/getsentry/sentry-javascript-examples
- Owner: getsentry
- License: mit
- Created: 2024-04-09T12:39:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T12:31:49.000Z (5 months ago)
- Last Synced: 2025-03-22T06:47:09.837Z (3 months ago)
- Topics: tag-non-production
- Language: TypeScript
- Homepage:
- Size: 4.37 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example Apps for the Sentry JS SDKs
_This repository is a work in progress_
The main purpose of this repository is to visualize the differences between the
[Sentry JS SDK](https://github.com/getsentry/sentry-javascript) version 7 and version 8. Those
example applications can also be used as a reference for using the JS SDKs.## Setup
1. Clone the repository
2. Copy the `.env.example` file to `.env` and set the `SENTRY_DSN` variable in it## How to test apps and save the payloads
1. Make sure you have a folder named like the app in `payload-files`.
- Example: `apps/express` -> `payload-files/express`
2. Run `yarn start:[app]`, e.g. `yarn start:express`.
3. Check the "Disable Cache" option in the DevTools Network tab of your browser.
4. Open the following URLs in your browser.
5. The json file will be generated.### Test URLs (for servers like express, fastify)
- http://localhost:3030/test-success
- http://localhost:3030/test-error
- http://localhost:3030/test-param-success/1337
- http://localhost:3030/test-param-error/1337
- http://localhost:3030/test-success-manual
- http://localhost:3030/test-error-manual
- http://localhost:3030/test-local-variables-caught
- http://localhost:3030/test-local-variables-uncaught### Test URLs (for meta frameworks like Next.js)
- http://localhost:3000/test-route-handlers
- click all the buttons to make requests