Skip to content

Issue #63 — Error tracking integration (Sentry) #460

@GoSTEAN

Description

@GoSTEAN

Title: [Middleware] Integrate Sentry error tracking

Tags: backend, feature

Description:
Capture and report unhandled exceptions and slow transactions to Sentry for production incident response.

Acceptance Criteria:

  • @sentry/node initialised in src/index.ts with DSN from env.
  • sentry.middleware.ts — Sentry request handler and error handler wrapping the Express app.
  • All unhandled promise rejections and uncaught exceptions sent to Sentry.
  • Performance tracing enabled with 10 % sample rate.
  • Sensitive fields (password, token, private key) scrubbed from payloads via beforeSend.
  • SENTRY_DSN added to .env.example.

Files: src/middleware/sentry.middleware.ts, src/index.ts


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions