Skip to content

sentryadam0000345/react

 
 

Repository files navigation

sentry-demos/react

Versions Summary:

dependency version
node 14.2.0
sentry-cli 1.52.3
macOS Catalina 10.15.3
docker 19.03.8

Goal/Summary:

Show how Sentry works

  • Import/Integrate
  • Configuration
  • Releases/SourceMaps/Commits
  • Session + Transcation Tracing (correlate errors across FE, BE, etc.)

First-time Setup

  1. Use the nvmrc file to set a compatible node version.
nvm use
  1. Install dependencies
npm install
  1. Configure Sentry with your PUBLIC_DSN_KEY in index.html
  2. Remember to include your SENTRY_AUTH_TOKEN; you'll need to generate one first from your Sentry server. After doing so, a cheap and easy way to use the token would be this: export SENTRY_AUTH_TOKEN=1010101011010101
  3. Make sure that your Github repo is integrated into your Sentry organization.
  4. Enter your Sentry organization slug in the SENTRY_ORG line of your Makefile, then add the name of SENTRY_PROJECT

Run

$ npm run deploy
  1. Go to http://localhost:5000 in your browser and begin throwing errors/events to Sentry!

Alt Text

Tracing

Alt Text

Deploy to Google Cloud Run:

$ make deploy_to_gcp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.7%
  • CSS 16.9%
  • HTML 11.8%
  • Makefile 7.1%
  • Shell 3.0%
  • Dockerfile 0.5%