CommunityProgramación y desarrollogithub.com

getsentry/sentry-node-sdk

Configuración completa del SDK de Sentry para Node.js, Bun y Deno. Útil cuando se te pida 'agregar Sentry a Node.js', 'agregar Sentry a Bun', 'agregar Sentry a Deno', 'instalar @sentry/node', '@sentry/bun' o '@sentry/deno', o configurar monitoreo de errores, trazado, registro, perfilado, métricas, cron jobs o monitoreo de IA para entornos de ejecución JavaScript/TypeScript del lado del servidor.

¿Qué es sentry-node-sdk?

Esta skill proporciona la configuración completa del SDK de Sentry para los entornos de ejecución Node.js, Bun y Deno en el lado del servidor. Su propósito es inicializar y configurar Sentry para monitoreo de errores, trazado distribuido, registro estructurado, perfilado de rendimiento, métricas personalizadas, cron jobs y monitoreo de aplicaciones de IA. Al usarla, el agente puede instalar los paquetes correspondientes (`@sentry/node`, `@sentry/bun` o `@sentry/deno`), configurar el `Sentry.init()` con el DSN apropiado y habilitar las integraciones deseadas. Es especialmente útil para desarrolladores que necesitan instrumentar sus aplicaciones server-side con Sentry de manera rápida y estandarizada, ya que la skill se encarga de los pasos comunes y evita errores de configuración manual.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/getsentry/sentry-for-ai/tree/main/skills/sentry-node-sdk

Installed? Explore more Programación y desarrollo skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

¿Qué hace sentry-node-sdk?

Configuración completa del SDK de Sentry para Node.js, Bun y Deno. Útil cuando se te pida "agregar Sentry a Node.js", "agregar Sentry a Bun", "agregar Sentry a Deno", "instalar @sentry/node", "@sentry/bun" o "@sentry/deno", o configurar monitoreo de errores, trazado, registro, perfilado, métricas, cron jobs o monitoreo de IA para entornos de ejecución JavaScript/TypeScript del lado del servidor.

Instalación

Node.js

npm install @sentry/node
# o
pnpm add @sentry/node
# o
yarn add @sentry/node

Bun

bun add @sentry/bun

Deno

deno add @sentry/deno

Configuración básica

Node.js

import * as Sentry from "@sentry/node";

Sentry.init({
  dsn: "__DSN__",
  tracesSampleRate: 1.0, // Ajusta según necesidades de rendimiento
});

Bun

import * as Sentry from "@sentry/bun";

Sentry.init({
  dsn: "__DSN__",
  tracesSampleRate: 1.0,
});

Deno

import * as Sentry from "@sentry/deno";

Sentry.init({
  dsn: "__DSN__",
  tracesSampleRate: 1.0,
});

Características principales

  • Monitoreo de errores: Captura y reporta excepciones no capturadas y rechazos de promesas.
  • Trazado distribuido: Rastrea solicitudes entre servicios con tracesSampleRate.
  • Registro estructurado: Envía logs con contexto y niveles de severidad.
  • Perfilado de rendimiento: Identifica cuellos de botella con profiling de transacciones.
  • Métricas personalizadas: Define y envía métricas de negocio.
  • Cron jobs: Monitorea tareas programadas y detecta fallos.
  • Monitoreo de IA: Observa modelos de lenguaje y pipelines de IA.

Uso avanzado

Configuración de entorno

Sentry.init({
  dsn: process.env.SENTRY_DSN,
  environment: process.env.NODE_ENV || "development",
  release: "v1.0.0",
});

Captura manual de errores

try {
  // código que puede fallar
} catch (error) {
  Sentry.captureException(error);
}

Integración con frameworks

  • Express: usar Sentry.setupExpressErrorHandler(app).
  • Fastify: usar Sentry.setupFastifyErrorHandler(app).
  • Koa: usar Sentry.setupKoaErrorHandler(app).

Documentación adicional

Para más detalles, consulta la documentación oficial de Sentry.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

getsentry/sentry-android-sdk

Full Sentry SDK setup for Android. Use when asked to "add Sentry to Android", "install sentry-android", "setup Sentry in Android", or configure error monitoring, tracing, profiling, session replay, or logging for Android applications. Supports Kotlin and Java codebases.

getsentry/sentry-browser-sdk

Full Sentry SDK setup for browser JavaScript. Use when asked to "add Sentry to a website", "install @sentry/browser", or configure error monitoring, tracing, session replay, or logging for vanilla JavaScript, jQuery, static sites, or WordPress.

getsentry/sentry-cloudflare-sdk

Full Sentry SDK setup for Cloudflare Workers and Pages. Use when asked to "add Sentry to Cloudflare Workers", "install @sentry/cloudflare", or configure error monitoring, tracing, logging, crons, or AI monitoring for Cloudflare Workers, Pages, Durable Objects, Queues, Workflows, or Hono on Cloudflare.

getsentry/sentry-cocoa-sdk

Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS). Use when asked to "add Sentry to iOS", "add Sentry to Swift", "install sentry-cocoa", or configure error monitoring, tracing, profiling, session replay, logging, or metrics for Apple applications. Supports SwiftUI and UIKit.

getsentry/sentry-code-review

Analyze and resolve Sentry comments on GitHub Pull Requests. Use this when asked to review or fix issues identified by Sentry in PR comments. Can review specific PRs by number or automatically find recent PRs with Sentry feedback.

getsentry/sentry-create-alert

Create Sentry alerts using the workflow engine API. Use when asked to create alerts, set up notifications, configure issue priority alerts, or build workflow automations. Supports email, Slack, PagerDuty, Discord, and other notification actions.

getsentry/sentry-dotnet-sdk

Full Sentry SDK setup for .NET. Use when asked to "add Sentry to .NET", "install Sentry for C#", or configure error monitoring, tracing, profiling, logging, or crons for ASP.NET Core, MAUI, WPF, WinForms, Blazor, Azure Functions, or any other .NET application.

getsentry/sentry-elixir-sdk

Full Sentry SDK setup for Elixir. Use when asked to "add Sentry to Elixir", "install sentry for Elixir", or configure error monitoring, tracing, logging, or crons for Elixir, Phoenix, or Plug applications. Supports Phoenix, Plug, LiveView, Oban, and Quantum.

getsentry/sentry-feature-setup

Configure specific Sentry features beyond basic SDK setup. Use when asked to monitor AI/LLM calls, set up OpenTelemetry pipelines, create alerts and notifications, or enable span streaming.

getsentry/sentry-fix-issues

Find and fix issues from Sentry using MCP. Use when asked to fix Sentry errors, debug production issues, investigate exceptions, or resolve bugs reported in Sentry. Methodically analyzes stack traces, breadcrumbs, traces, and context to identify root causes.

getsentry/sentry-flutter-sdk

Full Sentry SDK setup for Flutter and Dart. Use when asked to "add Sentry to Flutter", "install sentry_flutter", "setup Sentry in Dart", or configure error monitoring, tracing, profiling, session replay, or logging for Flutter applications. Supports Android, iOS, macOS, Linux, Windows, and Web.

getsentry/sentry-go-sdk

Full Sentry SDK setup for Go. Use when asked to "add Sentry to Go", "install sentry-go", "setup Sentry in Go", or configure error monitoring, tracing, logging, metrics, or crons for Go applications. Supports net/http, Gin, Echo, Fiber, FastHTTP, Iris, Negroni, and gRPC.

getsentry/sentry-nestjs-sdk

Full Sentry SDK setup for NestJS. Use when asked to "add Sentry to NestJS", "install @sentry/nestjs", "setup Sentry in NestJS", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for NestJS applications. Supports Express and Fastify adapters, GraphQL, microservices, WebSockets, and background jobs.

getsentry/sentry-nextjs-sdk

Full Sentry SDK setup for Next.js. Use when asked to "add Sentry to Next.js", "install @sentry/nextjs", or configure error monitoring, tracing, session replay, logging, profiling, AI monitoring, or crons for Next.js applications. Supports Next.js 13+ with App Router and Pages Router.

getsentry/sentry-otel-exporter-setup

Configure the OpenTelemetry Collector with Sentry Exporter for multi-project routing and automatic project creation. Use when setting up OTel with Sentry, configuring collector pipelines for traces and logs, or routing telemetry from multiple services to Sentry projects.

getsentry/sentry-php-sdk

Full Sentry SDK setup for PHP. Use when asked to "add Sentry to PHP", "install sentry/sentry", "setup Sentry in PHP", or configure error monitoring, tracing, profiling, logging, metrics, or crons for PHP applications. Supports plain PHP, Laravel, and Symfony.

getsentry/sentry-pr-code-review

Review a project's PRs to check for issues detected in code review by Seer Bug Prediction. Use when asked to review or fix issues identified by Sentry in PR comments, or to find recent PRs with Sentry feedback.

getsentry/sentry-python-sdk

Full Sentry SDK setup for Python. Use when asked to "add Sentry to Python", "install sentry-sdk", "setup Sentry in Python", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for Python applications. Supports Django, Flask, FastAPI, Celery, Starlette, AIOHTTP, Tornado, and more.

getsentry/sentry-react-native-sdk

Full Sentry SDK setup for React Native and Expo. Use when asked to "add Sentry to React Native", "install @sentry/react-native", "setup Sentry in Expo", or configure error monitoring, tracing, profiling, session replay, or logging for React Native applications. Supports Expo managed, Expo bare, and vanilla React Native.

getsentry/sentry-react-sdk

Full Sentry SDK setup for React. Use when asked to "add Sentry to React", "install @sentry/react", or configure error monitoring, tracing, session replay, profiling, or logging for React applications. Supports React 16+, React Router v5-v7 non-framework mode, TanStack Router, Redux, Vite, and webpack.

Skills relacionados