sentry-nestjs-sdk

Automate Sentry error monitoring and tracing setup for NestJS projects.

246|29|Updated Nov 10, 2025
One-click install
npx skills add https://github.com/getsentry/sentry-for-ai --skill sentry-nestjs-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-nestjs-sdk
Source: https://github.com/getsentry/sentry-for-ai/tree/main/skills/sentry-nestjs-sdk
Command: npx skills add https://github.com/getsentry/sentry-for-ai --skill sentry-nestjs-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

NestJS applications often struggle to consistently capture errors and traces across HTTP, GraphQL, RPC, and background jobs; this Skill provides an opinionated, drop-in Sentry setup to automate instrumentation and monitoring.

Core Features & Use Cases

  • Automatic error monitoring and tracing for NestJS HTTP, GraphQL, RPC, and microservices.
  • Phase 1–4 guidance: detect environment, configure integrations, register filters, and verify events.
  • Use case: when asked to initialize Sentry on a NestJS project with various adapters (Express/Fastify) and scheduling, this skill guides the entire workflow.
  • Supports profiling, logging, and AI monitoring configurations for advanced deployments.

Quick Start

Set up Sentry for a NestJS project with a minimal, safe default configuration.

Frequently Asked Questions about sentry-nestjs-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Sentry error monitoring in a NestJS application?

Set up Sentry error monitoring in a NestJS application using a minimal three-file configuration: load instrument.ts first, configure the SentryModule, and apply a global filter or decorator-based error capture patterns for automatic tracing.

Does Sentry SDK support tracing for NestJS microservices and GraphQL?

Yes, Sentry SDK supports tracing for NestJS microservices, GraphQL, HTTP, and RPC. It provides automatic NestJS lifecycle instrumentation and OpenTelemetry integration to capture traces across various adapters and background jobs.

What is the best way to automate NestJS lifecycle instrumentation for Sentry?

Automate NestJS lifecycle instrumentation for Sentry by using an opinionated, drop-in setup that configures environment detection, integrations, global filters, and event verification across phases without manual tracing code.

Can I configure profiling and AI monitoring alongside Sentry error tracking in NestJS?

Yes, you can configure profiling, logging, and AI monitoring alongside Sentry error tracking in NestJS. The setup supports these advanced deployment configurations natively after initializing the base instrumentation.

Why are my Sentry events not capturing errors across NestJS background jobs?

Sentry events may not capture errors across NestJS background jobs if the instrument.ts file is not loaded first or if the global filter and OpenTelemetry integration are not properly registered for lifecycle instrumentation.

Do I need OpenTelemetry to enable Sentry tracing in a NestJS project?

OpenTelemetry integration is used to enhance Sentry tracing in a NestJS project, working alongside automatic lifecycle instrumentation to ensure traces are captured across HTTP, GraphQL, and microservices.