Sentry for NestJS

NestJS Monitoring & Error Tracking

Install the official Sentry NestJS SDK and send supported events to AllStak with your project DSN.

Built for NestJS services in production

NestJS gives you a clean, modular backend — controllers, providers, guards, interceptors, and pipes — but in production that structure hides a lot. A failing dependency injection, an unhandled rejection in an async provider, a slow TypeORM query, or a third-party call timing out can degrade an endpoint without any obvious signal. Logs alone rarely tell you which request broke, who it affected, or which deploy introduced it. NestJS monitoring closes that gap by turning every error and request into searchable, attributable signal.

Use the maintained @sentry/nestjs package with the DSN from AllStak project setup. Validate supported framework instrumentation in a test environment before rollout.

What you can monitor in NestJS

The official Sentry NestJS SDK sends supported events to AllStak, where the platform turns them into actionable project context.

Real-time error tracking

Capture unhandled exceptions, rejected promises, and thrown HttpExceptions automatically, with full stack traces, request context, and grouping so duplicate errors collapse into one issue.

Distributed tracing

Follow a request across controllers, providers, and outbound HTTP calls with W3C-standard trace propagation and an OpenTelemetry-friendly wire format that connects NestJS to your other services.

Request & query insight

See per-route latency, status codes, and throughput, plus the slow database queries behind a degraded endpoint — so you find the bottleneck instead of guessing.

Release tracking

Tag every error and trace with a release and environment so you know exactly which deploy introduced a regression and can verify a fix shipped clean.

Infrastructure monitoring

Standard collectors send host and Docker telemetry so you can separate NestJS code errors from host pressure.

Smart alerts & incidents

Get alerted on new error types, error-rate spikes, latency thresholds, or downtime — routed to your team and grouped into incidents instead of a flood of noise.

Add AllStak in minutes

Install the official Sentry SDK, configure your AllStak project DSN, and verify a test error. Enable optional request and performance integrations supported by the setup guide.

app.module.ts
npm install @sentry/nestjs

import * as Sentry from '@sentry/nestjs';

Sentry.init({
  dsn: process.env.ALLSTAK_DSN,
  environment: process.env['NODE_ENV'],
});

Minimal setup — error tracking, request, and performance monitoring start automatically. full setup guide · SDK reference.

What a NestJS developer sees

Error detail

Open an issue to see the full stack trace through your NestJS modules, the request method and route, headers and parameters, the affected user, and how often it has happened across deploys.

Performance & traces

Inspect a trace timeline for a single request: time spent in your controller, providers, database queries, and outbound calls, with the slowest span highlighted so the bottleneck is obvious.

Unified dashboard

Watch errors, request rates, latency, logs, and host metrics for your NestJS service update in real time on one screen — no tab-switching between separate tools.

Why teams choose AllStak for NestJS

  • First-class NestJS SDK that hooks into the framework lifecycle — minimal setup, automatic capture.
  • One platform for errors, logs, tracing, infrastructure, uptime, SSL, and status pages — not five separate subscriptions.
  • OpenTelemetry-friendly wire format and W3C trace propagation, so NestJS connects cleanly to the rest of your stack.
  • Predictable SAR pricing with a free tier — a simpler, lower-cost alternative to Sentry plus extra tools.
  • Saudi-based, with SAR pricing and a free tier.
  • Real-time dashboard and team collaboration, so the whole team sees the same signal and resolves faster.

NestJS monitoring FAQ

How do I add monitoring to a NestJS app?

Install @sentry/nestjs and initialize it with the DSN from AllStak project setup. The setup guide has the exact official-SDK steps.

Is AllStak free for NestJS?

Yes. There is a free tier you can start on with no credit card, and predictable SAR pricing as you grow. You can monitor a NestJS service and explore errors, traces, and dashboards on the free plan.

Does it capture errors automatically or do I call it manually?

Unhandled exceptions and rejections are captured automatically once the SDK is registered. You can also capture a handled error explicitly and attach extra context — for example a user, route, or custom tags.

Does it support distributed tracing across services?

Yes. AllStak uses W3C-standard trace propagation and an OpenTelemetry-friendly wire format, so a request traced through your NestJS service links to upstream and downstream services in the same trace.

Can I monitor my server and database alongside NestJS errors?

Yes. Standard collectors send infrastructure telemetry while application instrumentation surfaces slow queries, keeping code- and host-level signals together.

How is this different from using Sentry?

Sentry focuses on errors and performance, which usually means adding separate tools for logs, infrastructure, uptime, and status pages. AllStak brings all of that into one platform with one bill and predictable SAR pricing.

Start monitoring your NestJS app free

Add the official Sentry SDK to your NestJS service and point it at AllStak. Start on the free tier with predictable SAR pricing.