Lab-Lab-Lab / CPR-Music

0 stars 9 forks source link

sentry #4

Open hcientist opened 1 month ago

hcientist commented 1 month ago

right now:

Need to:

See slack for auth

Status:

ToDo's (?)

See:

hcientist commented 1 month ago

What more can we tell sentry, and how would we do it?

  1. environment?
    1. ${process.env.NODE_ENV}-${process.env.CODESPACE_NAME}
  2. user: on login and logout do the corresponding things from https://docs.sentry.io/platforms/javascript/guides/nextjs/enriching-events/identify-user/
  3. would be nice to have a sentry error when the user gets the private score issue:
    1. to artificially force the issue, edit your database by deleting a character from the sharingKey of whatever from a parttransposition, e.g. http://localhost:8000/admin/musics/parttransposition/313/change/
  4. maybe we should have a pre-build.sh that we run before next build, i.e. sh pre-build.sh && next build in the https://github.com/Lab-Lab-Lab/CPR-Music-mfwolffe/blob/sentry-tests/package.json#L5C13-L5C27
    1. write the current version to .env.local (e.g. from some git tag or git branch or git log commit hash output?
hcientist commented 1 month ago

https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#react-render-errors-in-pages-router