DevOps

Sentry

How Bluak uses Sentry to capture, triage and resolve production errors across Laravel, Node.js, React and React Native applications.

DevOps

Sentry

Backend

Laravel

Frontend

React

    Overview

    Sentry is the most widely used error and performance monitoring platform in the modern development ecosystem. It automatically captures exceptions and errors in production, groups them by type, enriches them with context (user, environment, stack trace, breadcrumbs) and notifies the team with the information needed to diagnose and fix the issue quickly.

    At Bluak, Sentry is configured from the start on every project that goes to production. Silent errors in production are invisible technical debt; Sentry makes them visible and actionable.

    Why we use Sentry at Bluak

    • Full error visibility: errors users never report (the majority) get logged automatically.
    • Complete stack traces: includes the stack trace, HTTP request, affected user, environment and events leading up to the error.
    • Smart grouping: similar errors are grouped automatically to avoid duplicate noise.
    • Performance monitoring: traces that help identify slow endpoints, slow queries or blocking frontend components.
    • Release tracking: correlates errors with releases to identify which version introduced a bug.
    • SDKs for the whole stack: official SDKs for PHP (Laravel), Node.js, React, React Native, Vue and more.

    Bluak usage standard

    • Configured from the first deploy: Sentry is installed before going to production, not after problems appear.
    • Frontend source maps: JavaScript errors show the original code, not the minified one.
    • Release tracking: the commit SHA is sent to Sentry on deploy to correlate errors with versions.
    • User context: when the user is authenticated, their ID (anonymized where GDPR applies) is attached to the error.
    • Alerts configured: alert rules for new errors, high-frequency errors and performance degradations.
    • Separate environments: development, staging and production as separate Sentry environments.

    Laravel: config/sentry.php + bootstrap

    // .env
    SENTRY_LARAVEL_DSN=https://xxxxx@o0.ingest.sentry.io/0
    SENTRY_TRACES_SAMPLE_RATE=0.1
    
    // app/Exceptions/Handler.php
    public function register(): void
    {
        $this->reportable(function (Throwable $e) {
            if (app()->bound('sentry')) {
                \Sentry\captureException($e);
            }
        });
    }

    React: Sentry with React Router

    import * as Sentry from '@sentry/react'
    
    Sentry.init({
      dsn: import.meta.env.VITE_SENTRY_DSN,
      environment: import.meta.env.MODE,
      release: import.meta.env.VITE_APP_VERSION,
      tracesSampleRate: 0.1,
      integrations: [Sentry.browserTracingIntegration()],
    })
    
    export const App = Sentry.withErrorBoundary(AppComponent, {
      fallback: <ErrorPage />,
    })

    FAQs

    ¿Es más caro desarrollar un software a medida que comprar uno ya hecho?

    Inicialmente, el software a medida puede suponer una inversión mayor, pero a medio y largo plazo reduce costes derivados de licencias, ineficiencias, adaptaciones forzadas y mantenimiento externo. Además, mejora el retorno de inversión (ROI) gracias a su alineación con los objetivos del negocio.

    El tiempo de desarrollo varía según la complejidad del proyecto, pero en promedio puede oscilar entre 3 y 9 meses. Factores como integración con otros sistemas, número de módulos y validaciones influyen directamente en el plazo.

    Algunos de los beneficios clave incluyen:

    - Incremento de la eficiencia operativa hasta en un 74% mediante automatización y adaptación total a procesos internos.
    - Mayor seguridad al estar diseñado con criterios específicos desde su arquitectura.
    - Escalabilidad garantizada: el sistema crece con tu negocio.

    (Fuente: RVS Media, Moldstud, SEI-CMU)
     

    El software a medida es una solución tecnológica desarrollada específicamente para adaptarse a los procesos, objetivos y estructura de una empresa. A diferencia del software comercial o “off-the-shelf”, no impone limitaciones funcionales ni obliga a modificar tus procesos internos.

    Related documentation