Skip to content

(a) Demonstration of Sentry error and performance tracking in a RedwoodJS application

License

Notifications You must be signed in to change notification settings

realStandal/redwood-sentry-demo

Repository files navigation

🚔   Sentry

(a) Demonstration of Sentry error and performance tracking in a RedwoodJS application


Getting Started

0) Prerequisites

1) Get the code

git clone https://github.com/realStandal/redwood-sentry-demo.git
cd redwood-sentry-demo
yarn install

2) Create and configure a Sentry project

Start by heading to Sentry's create a project page and setup a Browser JavaScript project with the name "redwood-sentry-demo". Once your project has been created, grab its DSN from the relevant page and set its value as the SENTRY_DSN envrionment variable.

SENTRY_DSN=https://XXXXXXX@XXXXXXX.ingest.sentry.io/XXXXXXX

3) Create an SQLite database

Create an SQLite database which will temporarily store registered users and be used to perform Prisma queries against.

yarn rw prisma db push

4) Register an account

Start the RedwoodJS development server:

yarn rw dev

Then navigate to the /signup page to create an account.

5) Test error and performance tracing

The home page provides a list of links to various pages which will trigger the following:

  • Function Exception - A Function which throws an error tagged to the current user (via the web).
  • Service Exception - A service which throws an error tagged to the current user (via the API and web).
  • Prisma Tracing - A service which invokes a Prisma query, logging details about the request to Sentry.
  • Unauthenticated Exception - A service which throws an error as an unauthenticated user.

License

This project is provided under the MIT license

About

(a) Demonstration of Sentry error and performance tracking in a RedwoodJS application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published