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: Integrate Sentry to backend #270

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tunny17
Copy link
Collaborator

@tunny17 tunny17 commented Apr 18, 2024

What does this PR do?

Fixes #256

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • Enhancement (small improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change adds a new database migration
  • This change requires a documentation update

How should this be tested?

  • Create your sentry account on sentry.io, add your DSN key to your env file then open your terminal, switch directory to the backend folder then in the server.js file, create a route and throw an error in the route, then run "node server.js", you'll get a mail and you'll see the error in the issues section of your sentry dashboard.

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand bits
  • Ran pnpm build
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the ClassroomIO Docs if changes were necessary

Copy link

vercel bot commented Apr 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cio-cloud ❌ Failed (Inspect) Apr 18, 2024 9:14am
cio-com ❌ Failed (Inspect) Apr 18, 2024 9:14am
cio-docs ✅ Ready (Inspect) Visit Preview Apr 18, 2024 9:14am

Copy link

Thank you for following the naming conventions for pull request titles! 🙏

@@ -12,24 +14,33 @@ const downloadCourse = require('./src/routes/downloadCourse');
const katex = require('./src/routes/katex');
const sendEmail = require('./src/routes/sendEmail');

sentry.init({
dsn: process.env.DSN || '',
Copy link
Owner

Choose a reason for hiding this comment

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

What is the DNS?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's like an api key to connect the app to my sentry account, you'd have to create an account for classroomio to get yours. (Data Source Name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add sentry monitoring to backend
2 participants