Skip to content

Conversation

@JudahSan
Copy link
Collaborator

Summary

Adds Sentry for error and performance monitoring, with secure setup and environment-aware configuration.

Key Features

  • Configurable via environment variables.
  • Smart sampling: critical endpoints (auth, core content) traced at higher rates, health checks skipped.
  • Errors enriched with user, request, and release context.
  • Sensitive data (e.g., password, token, api_key) scrubbed automatically.
  • Releases linked to git commits for traceability.
  • Safe integration: fails gracefully without credentials.

Why this Change?

Enables proactive monitoring and faster debugging without affecting app performance.

How to Test

  1. Update config/credentials/development.yml.enc with valid Sentry credentials (sentry.dsn, sentry.enabled, optional rates).
  2. Start your Rails server (rails server).
  3. Follow the verification steps in the Sentry Rails docs to confirm events are sent successfully.

@JudahSan JudahSan self-assigned this Sep 19, 2025
@JudahSan JudahSan linked an issue Sep 19, 2025 that may be closed by this pull request
4 tasks
@adamswonder adamswonder merged commit e546af4 into African-Ruby-Community:main Sep 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Sentry Integration for Observability

2 participants