sentry-nestjs-sdk

Integrate the Sentry SDK into NestJS applications for error tracking, tracing, and profiling.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/achmf/KostaHub --skill sentry-nestjs-sdk-achmf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-nestjs-sdk
Source: https://github.com/achmf/KostaHub/tree/main/.agents/skills/sentry-nestjs-sdk
Command: npx skills add https://github.com/achmf/KostaHub --skill sentry-nestjs-sdk-achmf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @sentry/nestjs, @sentry/profiling-node, and includes references (resource) components.

What problem does it solve?

This Skill eliminates the complexity of manually configuring error monitoring, distributed tracing, and performance profiling in NestJS applications, ensuring you have full observability from day one.

Core Features & Use Cases

  • Automated Setup: Guides you through the critical three-file initialization pattern required for proper OpenTelemetry patching in NestJS.
  • Feature-Rich Monitoring: Provides turn-key support for Error Monitoring, Tracing, Profiling, Logging, Metrics, and AI Agent monitoring.
  • Use Case: If you are building a production NestJS microservice, use this Skill to automatically instrument your controllers, guards, and background jobs to capture unhandled exceptions and performance bottlenecks.

Quick Start

Use the sentry-nestjs-sdk skill to configure error monitoring and tracing for my current NestJS project.

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 tracking and tracing in a NestJS application?

To set up Sentry error tracking in NestJS, you need a specific three-file initialization pattern for proper OpenTelemetry patching, followed by registering global filters to capture unhandled exceptions across the request lifecycle.

Does Sentry SDK support performance profiling for NestJS microservices?

Yes, Sentry SDK supports performance profiling and distributed tracing for NestJS microservices, automatically instrumenting controllers, guards, and background job queues to identify performance bottlenecks.

Can I use Sentry to monitor WebSockets and GraphQL requests in NestJS?

Yes, you can use Sentry to monitor WebSockets and GraphQL requests in NestJS, as the integration provides comprehensive observability and seamless error tracking across complex NestJS architectures.

What is the best way to capture unhandled exceptions in NestJS background job queues?

The best way to capture unhandled exceptions in NestJS background job queues is using a Sentry SDK integration that automatically instruments your jobs and registers global filters for full observability.

Why do I need multiple initialization files for Sentry OpenTelemetry patching in NestJS?

Multiple initialization files are required for Sentry OpenTelemetry patching in NestJS to ensure the SDK loads correctly before application modules, enabling seamless tracing across the entire request lifecycle.