Skip to content

Improve production error logging #906

@ggwadera

Description

@ggwadera

We currently use Sentry to capture errors on the production deployment but it seems it's not doing a very good job because we're mostly clueless whenever a bug happens to show up. I don't know if it's a configuration issue with Sentry or we're just not doing things correctly to send the logs.

Either way, it's worth to take some time to read the docs to better understand this and try to fix, so we can have more reliable logging for bug fixing. Alternatives to Sentry are also welcome if it's reasonable enough to warrant a migration.

Another thing is that logs from dev environments are also being sent, which leads to some confusion when going over the errors on Sentry. Might have to add a condition to only init Sentry when running on production.

c0d3-app/pages/_app.tsx

Lines 20 to 22 in d35f563

Sentry.init({
dsn: SENTRY_DSN
})

So basically, this is what is desired to be improved:

  • Disable error reporting outside of production environment
  • Fix all the logs that aren't being sent from the production deployment
  • Include the serverless function errors logs in the report, or setup a log drain on Vercel

Some useful resources:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is neededtdtech debt

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions