[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DQ0VR7XCHDXYMWYFXGC6ZJ":3,"skill-same:01M7DQ0VR7XCHDXYMWYFXGC6ZJ":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M7DQ0VR7XCHDXYMWYFXGC6ZJ","sentry-node-sdk",null,"Full Sentry SDK setup for Node.js, Bun, and Deno. Use when asked to \"add Sentry to Node.js\", \"add Sentry to Bun\", \"add Sentry to Deno\", \"install @sentry\u002Fnode\", \"@sentry\u002Fbun\", or \"@sentry\u002Fdeno\", or configure error monitoring, tracing, logging, profiling, metrics, crons, or AI monitoring for server-side JavaScript\u002FTypeScript runtimes.","Hazek-dc\u002FPresensiGuru_FaceNet_EMAR","Hazek-dc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F75208960?v=4","01M7DEQV5B4YGS86A81DYH81DR","Hazek","01M7DEQV5XP4TM0C6NTHXCXCHR",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-node-sdk\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sentry-node-sdk\ndescription: Full Sentry SDK setup for Node.js, Bun, and Deno. Use when asked to \"add Sentry to Node.js\", \"add Sentry to Bun\", \"add Sentry to Deno\", \"install @sentry\u002Fnode\", \"@sentry\u002Fbun\", or \"@sentry\u002Fdeno\", or configure error monitoring, tracing, logging, profiling, metrics, crons, or AI monitoring for server-side JavaScript\u002FTypeScript runtimes.\nlicense: Apache-2.0\ncategory: sdk-setup\nparent: sentry-sdk-setup\ndisable-model-invocation: true\n---\n\n> [All Skills](..\u002F..\u002FSKILL_TREE.md) > [SDK Setup](..\u002Fsentry-sdk-setup\u002FSKILL.md) > Node.js \u002F Bun \u002F Deno SDK\n\n# Sentry Node.js \u002F Bun \u002F Deno SDK\n\nOpinionated wizard that scans your project and guides you through complete Sentry setup for server-side JavaScript and TypeScript runtimes: Node.js, Bun, and Deno.\n\n## Invoke This Skill When\n\n- User asks to \"add Sentry to Node.js\", \"Bun\", or \"Deno\"\n- User wants to install or configure `@sentry\u002Fnode`, `@sentry\u002Fbun`, or `@sentry\u002Fdeno`\n- User wants error monitoring, tracing, logging, profiling, crons, metrics, or AI monitoring for a backend JS\u002FTS app\n- User asks about `instrument.js`, `--import .\u002Finstrument.mjs`, `bun --preload`, or `npm:@sentry\u002Fdeno`\n- User wants to monitor Express, Fastify, Koa, Hapi, Connect, Bun.serve(), or Deno.serve()\n\n> **NestJS?** Use [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) instead — it uses `@sentry\u002Fnestjs` with NestJS-native decorators and filters.\n> **Next.js?** Use [`sentry-nextjs-sdk`](..\u002Fsentry-nextjs-sdk\u002FSKILL.md) instead — it handles the three-runtime architecture (browser, server, edge).\n\n> **Note:** SDK versions below reflect current Sentry docs at time of writing (`@sentry\u002Fnode` ≥10.42.0, `@sentry\u002Fbun` ≥10.42.0, `@sentry\u002Fdeno` ≥10.42.0).\n> Always verify against [docs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002F) before implementing.\n\n---\n\n## Phase 1: Detect\n\nRun these commands to identify the runtime, framework, and existing Sentry setup:\n\n```bash\n# Detect runtime\nbun --version 2>\u002Fdev\u002Fnull && echo \"Bun detected\"\ndeno --version 2>\u002Fdev\u002Fnull && echo \"Deno detected\"\nnode --version 2>\u002Fdev\u002Fnull && echo \"Node.js detected\"\n\n# Detect existing Sentry packages\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"@sentry\u002F'\ncat deno.json deno.jsonc 2>\u002Fdev\u002Fnull | grep -i sentry\n\n# Detect Node.js framework\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"express\"|\"fastify\"|\"@hapi\u002Fhapi\"|\"koa\"|\"@nestjs\u002Fcore\"|\"connect\"'\n\n# Detect Bun-specific frameworks\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"elysia\"|\"hono\"'\n\n# Detect Deno frameworks (deno.json imports)\ncat deno.json deno.jsonc 2>\u002Fdev\u002Fnull | grep -E '\"oak\"|\"hono\"|\"fresh\"'\n\n# Detect module system (Node.js)\ncat package.json 2>\u002Fdev\u002Fnull | grep '\"type\"'\nls *.mjs *.cjs 2>\u002Fdev\u002Fnull | head -5\n\n# Detect existing instrument file\nls instrument.js instrument.mjs instrument.ts instrument.cjs 2>\u002Fdev\u002Fnull\n\n# Detect logging libraries\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"winston\"|\"pino\"|\"bunyan\"'\n\n# Detect cron \u002F scheduling\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"node-cron\"|\"cron\"|\"agenda\"|\"bull\"|\"bullmq\"'\n\n# Detect AI \u002F LLM usage\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"openai\"|\"@anthropic-ai\"|\"@langchain\"|\"@vercel\u002Fai\"|\"@google\u002Fgenerative-ai\"'\n\n# Detect OpenTelemetry tracing\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"@opentelemetry\u002Fsdk-node\"|\"@opentelemetry\u002Fsdk-trace-node\"|\"@opentelemetry\u002Fsdk-trace-base\"'\ngrep -rn \"NodeTracerProvider\\|trace\\.getTracer\\|startActiveSpan\" \\\n  --include=\"*.ts\" --include=\"*.js\" --include=\"*.mjs\" 2>\u002Fdev\u002Fnull | head -5\n\n# Check for companion frontend\nls frontend\u002F web\u002F client\u002F ui\u002F 2>\u002Fdev\u002Fnull\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"react\"|\"vue\"|\"svelte\"|\"next\"'\n```\n\n**What to determine:**\n\n| Question | Impact |\n|----------|--------|\n| Which runtime? (Node.js \u002F Bun \u002F Deno) | Determines package, init pattern, and preload flag |\n| Node.js: ESM or CJS? | ESM requires `--import .\u002Finstrument.mjs`; CJS uses `require(\".\u002Finstrument\")` |\n| Framework detected? | Determines which error handler to register |\n| `@sentry\u002F*` already installed? | Skip install, go straight to feature config |\n| `instrument.js` \u002F `instrument.mjs` already exists? | Merge into it rather than overwrite |\n| Logging library detected? | Recommend Sentry Logs |\n| Cron \u002F job scheduler detected? | Recommend Crons monitoring |\n| AI library detected? | Recommend AI Monitoring |\n| OpenTelemetry tracing detected? | Use OTLP path instead of native tracing |\n| Companion frontend found? | Trigger Phase 4 cross-link |\n\n---\n\n## Phase 2: Recommend\n\nPresent a concrete recommendation based on what you found. Don't ask open-ended questions — lead with a proposal:\n\n**Route from OTel detection:**\n- **OTel tracing detected** (`@opentelemetry\u002Fsdk-node` or `@opentelemetry\u002Fsdk-trace-node` in `package.json`, or `NodeTracerProvider` in source) → use OTLP path: `otlpIntegration()` via `@sentry\u002Fnode-core\u002Flight`; do **not** set `tracesSampleRate`; Sentry links errors to OTel traces automatically\n\n**Recommended (core coverage):**\n- ✅ **Error Monitoring** — always; captures unhandled exceptions, promise rejections, and framework errors\n- ✅ **Tracing** — automatic HTTP, DB, and queue instrumentation via OpenTelemetry\n\n**Optional (enhanced observability):**\n- ⚡ **Logging** — structured logs via `Sentry.logger.*`; recommend when `winston`\u002F`pino`\u002F`bunyan` or log search is needed\n- ⚡ **Profiling** — continuous CPU profiling (Node.js only; not available on Bun or Deno); **not available with OTLP path**\n- ⚡ **AI Monitoring** — OpenAI, Anthropic, LangChain, Vercel AI SDK; recommend when AI\u002FLLM calls detected\n- ⚡ **Crons** — detect missed or failed scheduled jobs; recommend when node-cron, Bull, or Agenda is detected\n- ⚡ **Metrics** — custom counters, gauges, distributions; recommend when custom KPIs needed\n- ⚡ **Runtime Metrics** — automatic collection of memory, CPU, and event loop metrics; `nodeRuntimeMetricsIntegration()` (Node.js) \u002F `bunRuntimeMetricsIntegration()` (Bun)\n\n**Recommendation logic:**\n\n| Feature | Recommend when... |\n|---------|------------------|\n| Error Monitoring | **Always** — non-negotiable baseline |\n| OTLP Integration | OTel tracing detected — **replaces** native Tracing |\n| Tracing | **Always for server apps** — HTTP spans + DB spans are high-value; **skip if OTel tracing detected** |\n| Logging | App uses winston, pino, bunyan, or needs log-to-trace correlation |\n| Profiling | **Node.js only** — performance-critical service; native addon compatible; **skip if OTel tracing detected** (requires `tracesSampleRate`, incompatible with OTLP) |\n| AI Monitoring | App calls OpenAI, Anthropic, LangChain, Vercel AI, or Google GenAI |\n| Crons | App uses node-cron, Bull, BullMQ, Agenda, or any scheduled task pattern |\n| Metrics | App needs custom counters, gauges, or histograms |\n| Runtime Metrics | Any Node.js or Bun service wanting automatic memory\u002FCPU\u002Fevent-loop visibility |\n\n**OTel tracing detected:** *\"I see OpenTelemetry tracing in the project. I recommend Sentry's OTLP integration for tracing (via your existing OTel setup) + Error Monitoring + Sentry Logging [+ Metrics\u002FCrons\u002FAI Monitoring if applicable]. Shall I proceed?\"*\n\n**No OTel:** *\"I recommend setting up Error Monitoring + Tracing. Want me to also add Logging or Profiling?\"*\n\n---\n\n## Phase 3: Guide\n\n### Runtime: Node.js\n\n#### Option 1: Wizard (Recommended for Node.js)\n\n> **You need to run this yourself** — the wizard opens a browser for login and requires interactive input that the agent can't handle. Copy-paste into your terminal:\n>\n> ```\n> npx @sentry\u002Fwizard@latest -i node\n> ```\n>\n> It handles login, org\u002Fproject selection, SDK installation, `instrument.js` creation, and package.json script updates.\n>\n> **Once it finishes, come back and skip to [Verification](#verification).**\n\nIf the user skips the wizard, proceed with Option 2 (Manual Setup) below.\n\n---\n\n#### Option 2: Manual Setup — Node.js\n\n##### Install\n\n```bash\nnpm install @sentry\u002Fnode --save\n# or\nyarn add @sentry\u002Fnode\n# or\npnpm add @sentry\u002Fnode\n```\n\n##### Create the Instrument File\n\n**CommonJS (`instrument.js`):**\n\n```javascript\n\u002F\u002F instrument.js — must be loaded before all other modules\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? \"___DSN___\",\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n\n  \u002F\u002F 100% in dev, lower in production\n  tracesSampleRate: process.env.NODE_ENV === \"development\" ? 1.0 : 0.1,\n\n  \u002F\u002F Capture local variable values in stack frames\n  includeLocalVariables: true,\n\n  enableLogs: true,\n});\n```\n\n**ESM (`instrument.mjs`):**\n\n```javascript\n\u002F\u002F instrument.mjs — loaded via --import flag before any other module\nimport * as Sentry from \"@sentry\u002Fnode\";\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? \"___DSN___\",\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n  tracesSampleRate: process.env.NODE_ENV === \"development\" ? 1.0 : 0.1,\n  includeLocalVariables: true,\n  enableLogs: true,\n});\n```\n\n##### Start Your App with Sentry Loaded First\n\n**CommonJS** — add `require(\".\u002Finstrument\")` as the very first line of your entry file:\n\n```javascript\n\u002F\u002F app.js\nrequire(\".\u002Finstrument\"); \u002F\u002F must be first\n\nconst express = require(\"express\");\n\u002F\u002F ... rest of your app\n```\n\n**ESM** — use the `--import` flag so Sentry loads before all other modules (Node.js 18.19.0+ required):\n\n```bash\nnode --import .\u002Finstrument.mjs app.mjs\n```\n\nAdd to `package.json` scripts:\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"node --import .\u002Finstrument.mjs server.mjs\",\n    \"dev\": \"node --import .\u002Finstrument.mjs --watch server.mjs\"\n  }\n}\n```\n\nOr via environment variable (useful for wrapping existing start commands):\n\n```bash\nNODE_OPTIONS=\"--import .\u002Finstrument.mjs\" npm start\n```\n\n##### Framework Error Handlers\n\nRegister the Sentry error handler **after all routes** so it can capture framework errors:\n\n**Express:**\n\n```javascript\nconst express = require(\"express\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst app = express();\n\n\u002F\u002F ... your routes\n\n\u002F\u002F Add AFTER all routes — captures 5xx errors by default\nSentry.setupExpressErrorHandler(app);\n\n\u002F\u002F Optional: capture 4xx errors too\n\u002F\u002F Sentry.setupExpressErrorHandler(app, {\n\u002F\u002F   shouldHandleError(error) { return error.status >= 400; },\n\u002F\u002F });\n\napp.listen(3000);\n```\n\n**Fastify:**\n\n```javascript\nconst Fastify = require(\"fastify\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst fastify = Fastify();\n\n\u002F\u002F Add BEFORE routes (unlike Express!)\nSentry.setupFastifyErrorHandler(fastify);\n\n\u002F\u002F ... your routes\n\nawait fastify.listen({ port: 3000 });\n```\n\n**Koa:**\n\n```javascript\nconst Koa = require(\"koa\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst app = new Koa();\n\n\u002F\u002F Add as FIRST middleware (catches errors thrown by later middleware)\nSentry.setupKoaErrorHandler(app);\n\n\u002F\u002F ... your other middleware and routes\n\napp.listen(3000);\n```\n\n**Hapi (async — must await):**\n\n```javascript\nconst Hapi = require(\"@hapi\u002Fhapi\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst server = Hapi.server({ port: 3000 });\n\n\u002F\u002F ... your routes\n\n\u002F\u002F Must await — Hapi registration is async\nawait Sentry.setupHapiErrorHandler(server);\n\nawait server.start();\n```\n\n**Connect:**\n\n```javascript\nconst connect = require(\"connect\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst app = connect();\n\n\u002F\u002F Add BEFORE routes (like Fastify and Koa)\nSentry.setupConnectErrorHandler(app);\n\n\u002F\u002F ... your middleware and routes\n\nrequire(\"http\").createServer(app).listen(3000);\n```\n\n**NestJS** — has its own dedicated skill with full coverage:\n\n> **Use the [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) skill instead.**\n> NestJS uses a separate package (`@sentry\u002Fnestjs`) with NestJS-native constructs:\n> `SentryModule.forRoot()`, `SentryGlobalFilter`, `@SentryTraced`, `@SentryCron` decorators,\n> and GraphQL\u002FMicroservices support. Load that skill for complete NestJS setup.\n\n**Vanilla Node.js `http` module** — wrap request handler manually:\n\n```javascript\nconst http = require(\"http\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst server = http.createServer((req, res) => {\n  Sentry.withIsolationScope(() => {\n    try {\n      \u002F\u002F your handler\n      res.end(\"OK\");\n    } catch (err) {\n      Sentry.captureException(err);\n      res.writeHead(500);\n      res.end(\"Internal Server Error\");\n    }\n  });\n});\n\nserver.listen(3000);\n```\n\n**Framework error handler summary:**\n\n| Framework | Function | Placement | Async? |\n|-----------|----------|-----------|--------|\n| Express | `setupExpressErrorHandler(app)` | **After** all routes | No |\n| Fastify | `setupFastifyErrorHandler(fastify)` | **Before** routes | No |\n| Koa | `setupKoaErrorHandler(app)` | **First** middleware | No |\n| Hapi | `setupHapiErrorHandler(server)` | Before `server.start()` | **Yes** |\n| Connect | `setupConnectErrorHandler(app)` | **Before** routes | No |\n| NestJS | → Use [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) | Dedicated skill | — |\n\n---\n\n### Runtime: Bun\n\n> **No wizard available for Bun.** Manual setup only.\n\n#### Install\n\n```bash\nbun add @sentry\u002Fbun\n```\n\n#### Create `instrument.ts` (or `instrument.js`)\n\n```typescript\n\u002F\u002F instrument.ts\nimport * as Sentry from \"@sentry\u002Fbun\";\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? \"___DSN___\",\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n  tracesSampleRate: process.env.NODE_ENV === \"development\" ? 1.0 : 0.1,\n  enableLogs: true,\n});\n```\n\n#### Start Your App with `--preload`\n\n```bash\nbun --preload .\u002Finstrument.ts server.ts\n```\n\nAdd to `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"bun --preload .\u002Finstrument.ts server.ts\",\n    \"dev\": \"bun --watch --preload .\u002Finstrument.ts server.ts\"\n  }\n}\n```\n\n#### Bun.serve() — Auto-Instrumentation\n\n`@sentry\u002Fbun` automatically instruments `Bun.serve()` via JavaScript Proxy. No extra setup is required — just initialize with `--preload` and your `Bun.serve()` calls are traced:\n\n```typescript\n\u002F\u002F server.ts\nconst server = Bun.serve({\n  port: 3000,\n  fetch(req) {\n    return new Response(\"Hello from Bun!\");\n  },\n});\n```\n\n#### Framework Error Handlers on Bun\n\nBun can run Express, Fastify, Hono, and Elysia. Use the same `@sentry\u002Fbun` import and the `@sentry\u002Fnode` error handler functions (re-exported by `@sentry\u002Fbun`):\n\n```typescript\nimport * as Sentry from \"@sentry\u002Fbun\";\nimport express from \"express\";\n\nconst app = express();\n\u002F\u002F ... routes\nSentry.setupExpressErrorHandler(app);\napp.listen(3000);\n```\n\n#### Bun Feature Support\n\n| Feature | Bun Support | Notes |\n|---------|-------------|-------|\n| Error Monitoring | ✅ Full | Same API as Node |\n| Tracing | ✅ Via `@sentry\u002Fnode` OTel | Most auto-instrumentations work |\n| Logging | ✅ Full | `enableLogs: true` + `Sentry.logger.*` |\n| Profiling | ❌ Not available | `@sentry\u002Fprofiling-node` uses native addons incompatible with Bun |\n| Metrics | ✅ Full | `Sentry.metrics.*` |\n| Runtime Metrics | ✅ Full | `bunRuntimeMetricsIntegration()` — memory, CPU, event loop (no event loop delay percentiles) |\n| Crons | ✅ Full | `Sentry.withMonitor()` |\n| AI Monitoring | ✅ Full | OpenAI, Anthropic integrations work |\n\n---\n\n### Runtime: Deno\n\n> **No wizard available for Deno.** Manual setup only.\n> **Requires Deno 2.0+.** Deno 1.x is not supported.\n> **Use `npm:` specifier.** The `deno.land\u002Fx\u002Fsentry` registry is deprecated.\n\n#### Install via `deno.json` (Recommended)\n\n```json\n{\n  \"imports\": {\n    \"@sentry\u002Fdeno\": \"npm:@sentry\u002Fdeno@10.42.0\"\n  }\n}\n```\n\nOr import directly with the `npm:` specifier:\n\n```typescript\nimport * as Sentry from \"npm:@sentry\u002Fdeno\";\n```\n\n#### Initialize — Add to Entry File\n\n```typescript\n\u002F\u002F main.ts — Sentry.init() must be called before any other code\nimport * as Sentry from \"@sentry\u002Fdeno\";\n\nSentry.init({\n  dsn: Deno.env.get(\"SENTRY_DSN\") ?? \"___DSN___\",\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n  tracesSampleRate: Deno.env.get(\"DENO_ENV\") === \"development\" ? 1.0 : 0.1,\n  enableLogs: true,\n});\n\n\u002F\u002F Your application code follows\nDeno.serve({ port: 8000 }, (req) => {\n  return new Response(\"Hello from Deno!\");\n});\n```\n\n> Unlike Node.js and Bun, Deno does not have a `--preload` or `--import` flag. Sentry must be the first `import` in your entry file.\n\n#### Required Deno Permissions\n\nThe SDK requires network access to reach your Sentry ingest domain:\n\n```bash\ndeno run \\\n  --allow-net=o\u003CORG_ID>.ingest.sentry.io \\\n  --allow-read=.\u002Fsrc \\\n  --allow-env=SENTRY_DSN,SENTRY_RELEASE \\\n  main.ts\n```\n\nFor development, `--allow-all` works but is not recommended for production.\n\n#### Deno Cron Integration\n\nDeno provides native cron scheduling. Use `denoCronIntegration` for automatic monitoring:\n\n```typescript\nimport * as Sentry from \"@sentry\u002Fdeno\";\nimport { denoCronIntegration } from \"@sentry\u002Fdeno\";\n\nSentry.init({\n  dsn: Deno.env.get(\"SENTRY_DSN\") ?? \"___DSN___\",\n  integrations: [denoCronIntegration()],\n});\n\n\u002F\u002F Cron is automatically monitored\nDeno.cron(\"daily-cleanup\", \"0 0 * * *\", () => {\n  \u002F\u002F cleanup logic\n});\n```\n\n#### Deno Feature Support\n\n| Feature | Deno Support | Notes |\n|---------|-------------|-------|\n| Error Monitoring | ✅ Full | Unhandled exceptions + `captureException` |\n| Tracing | ✅ Custom OTel | Automatic spans for `Deno.serve()` and `fetch` |\n| Logging | ✅ Full | `enableLogs: true` + `Sentry.logger.*` |\n| Profiling | ❌ Not available | No profiling addon for Deno |\n| Metrics | ✅ Full | `Sentry.metrics.*` |\n| Runtime Metrics | ❌ Not available | No runtime metrics integration for Deno |\n| Crons | ✅ Full | `denoCronIntegration()` + `Sentry.withMonitor()` |\n| AI Monitoring | ✅ Partial | Vercel AI SDK integration works; OpenAI\u002FAnthropic via `npm:` |\n\n---\n\n### OTLP Integration (OTel-First Projects — Node.js Only)\n\n> Use this path **only when OpenTelemetry tracing was detected** in Phase 1\n> (e.g., `@opentelemetry\u002Fsdk-node` or `@opentelemetry\u002Fsdk-trace-node` in `package.json`).\n> For projects without an existing OTel setup, use the standard `@sentry\u002Fnode` path above.\n\nThe OTLP integration uses `@sentry\u002Fnode-core\u002Flight` — a lightweight Sentry SDK that does not bundle its own OpenTelemetry. Instead, it hooks into the user's existing OTel `TracerProvider` and exports spans to Sentry via OTLP.\n\n#### When to Use\n\n| Scenario | Recommended path |\n|----------|-----------------|\n| New project, no existing OTel | Standard `@sentry\u002Fnode` (above) — includes built-in OTel |\n| Existing OTel setup, want Sentry tracing | `@sentry\u002Fnode-core\u002Flight` + `otlpIntegration()` |\n| Existing OTel setup, sending to own Collector | `@sentry\u002Fnode-core\u002Flight` + `otlpIntegration({ collectorUrl })` |\n\n#### Install\n\n```bash\nnpm install @sentry\u002Fnode-core @opentelemetry\u002Fapi @opentelemetry\u002Fsdk-trace-node @opentelemetry\u002Fsdk-trace-base\n# or\nyarn add @sentry\u002Fnode-core @opentelemetry\u002Fapi @opentelemetry\u002Fsdk-trace-node @opentelemetry\u002Fsdk-trace-base\n# or\npnpm add @sentry\u002Fnode-core @opentelemetry\u002Fapi @opentelemetry\u002Fsdk-trace-node @opentelemetry\u002Fsdk-trace-base\n```\n\n> The `@opentelemetry\u002F*` packages are peer dependencies. If the project already has them installed, skip duplicates.\n\n#### Initialize\n\n```javascript\n\u002F\u002F instrument.mjs — load via --import flag before any other module\nimport { NodeTracerProvider } from '@opentelemetry\u002Fsdk-trace-node';\nimport * as Sentry from '@sentry\u002Fnode-core\u002Flight';\nimport { otlpIntegration } from '@sentry\u002Fnode-core\u002Flight\u002Fotlp';\n\n\u002F\u002F Register the user's OTel TracerProvider first\nconst provider = new NodeTracerProvider();\nprovider.register();\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? '___DSN___',\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n  enableLogs: true,\n\n  \u002F\u002F Do NOT set tracesSampleRate — OTel controls sampling\n  integrations: [\n    otlpIntegration({\n      \u002F\u002F Export OTel spans to Sentry via OTLP (default: true)\n      setupOtlpTracesExporter: true,\n    }),\n  ],\n});\n```\n\n**With a custom Collector endpoint:**\n\n```javascript\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? '___DSN___',\n  integrations: [\n    otlpIntegration({\n      collectorUrl: 'http:\u002F\u002Flocalhost:4318\u002Fv1\u002Ftraces',\n    }),\n  ],\n});\n```\n\n#### Start Your App\n\nSame `--import` pattern as the standard Node.js setup:\n\n```bash\nnode --import .\u002Finstrument.mjs app.mjs\n```\n\n#### Key Differences from Standard `@sentry\u002Fnode`\n\n| Aspect | `@sentry\u002Fnode` (standard) | `@sentry\u002Fnode-core\u002Flight` (OTLP) |\n|--------|--------------------------|----------------------------------|\n| OTel bundled | ✅ Yes — built-in TracerProvider | ❌ No — uses your existing provider |\n| Tracing control | `tracesSampleRate` in `Sentry.init()` | OTel SDK controls sampling |\n| Auto-instrumentation | ✅ Built-in (HTTP, DB, etc.) | ❌ You manage OTel instrumentations |\n| Profiling | ✅ Available | ❌ Not compatible |\n| Error ↔ trace linking | ✅ Automatic | ✅ Automatic (via `otlpIntegration`) |\n| Package size | Larger (includes OTel) | Smaller (light mode) |\n\n---\n\n### For Each Agreed Feature\n\nLoad the corresponding reference file and follow its steps:\n\n| Feature | Reference file | Load when... |\n|---------|---------------|-------------|\n| Error Monitoring | `references\u002Ferror-monitoring.md` | Always (baseline) — captures, scopes, enrichment, beforeSend |\n| OTLP Integration | See [OTLP Integration](#otlp-integration-otel-first-projects--nodejs-only) above | OTel tracing detected — **replaces** native Tracing |\n| Tracing | `references\u002Ftracing.md` | OTel auto-instrumentation, custom spans, distributed tracing, sampling; **skip if OTel tracing detected** |\n| Logging | `references\u002Flogging.md` | Structured logs, `Sentry.logger.*`, log-to-trace correlation |\n| Profiling | `references\u002Fprofiling.md` | Node.js only — CPU profiling, Bun\u002FDeno gaps documented; **skip if OTel tracing detected** |\n| Metrics | `references\u002Fmetrics.md` | Custom counters, gauges, distributions |\n| Runtime Metrics | See inline below | Automatic memory, CPU, and event loop metrics for Node.js and Bun |\n| Crons | `references\u002Fcrons.md` | Scheduled job monitoring, node-cron, Bull, Agenda, Deno.cron |\n| AI Monitoring | Load `sentry-setup-ai-monitoring` skill | OpenAI, Anthropic, LangChain, Vercel AI, Google GenAI |\n\nFor each feature: read the reference file, follow its steps exactly, and verify before moving on.\n\n### Runtime Metrics\n\nAutomatically collect Node.js and Bun runtime health metrics (memory, CPU utilization, event loop delay\u002Futilization, uptime) at a configurable interval. Metrics appear in Sentry's Metrics product under the `node.runtime.*` \u002F `bun.runtime.*` namespace.\n\n**Node.js** — add `nodeRuntimeMetricsIntegration()` to your `instrument.js`:\n\n```javascript\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN,\n  integrations: [\n    Sentry.nodeRuntimeMetricsIntegration(),\n    \u002F\u002F Optional: change collection interval (default 30 000 ms)\n    \u002F\u002F Sentry.nodeRuntimeMetricsIntegration({ collectionIntervalMs: 60_000 }),\n  ],\n});\n```\n\nMetrics collected by default: `node.runtime.mem.rss`, `node.runtime.mem.heap_used`, `node.runtime.mem.heap_total`, `node.runtime.cpu.utilization`, `node.runtime.event_loop.delay.p50`, `node.runtime.event_loop.delay.p99`, `node.runtime.event_loop.utilization`, `node.runtime.process.uptime`.\n\n**Bun** — add `bunRuntimeMetricsIntegration()` to your `instrument.ts`:\n\n```typescript\nimport * as Sentry from \"@sentry\u002Fbun\";\nimport { bunRuntimeMetricsIntegration } from \"@sentry\u002Fbun\";\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN,\n  integrations: [\n    bunRuntimeMetricsIntegration(),\n    \u002F\u002F Optional: change collection interval (default 30 000 ms)\n    \u002F\u002F bunRuntimeMetricsIntegration({ collectionIntervalMs: 60_000 }),\n  ],\n});\n```\n\nMetrics collected: same as Node.js except no event loop delay percentiles (unavailable in Bun). Prefixed with `bun.runtime.*`.\n\n---\n\n## Configuration Reference\n\n### `Sentry.init()` Core Options\n\n| Option | Type | Default | Notes |\n|--------|------|---------|-------|\n| `dsn` | `string` | — | Required. Also from `SENTRY_DSN` env var |\n| `tracesSampleRate` | `number` | — | 0–1; required to enable tracing; **do not set when using OTLP path** |\n| `dataCollection` | `object` | conservative unless set | Fine-grained control over auto-collected categories (`userInfo`, `cookies`, `httpHeaders`, `httpBodies`, `queryParams`, `genAI`). When omitted, the SDK falls back to `sendDefaultPii` (default `false`). Passing the object — even `{}` — flips unset categories to their permissive defaults; opt out per category. |\n| `includeLocalVariables` | `boolean` | `false` | Add local variable values to stack frames (Node.js) |\n| `enableLogs` | `boolean` | `false` | Enable Sentry Logs product (v9.41.0+) |\n| `environment` | `string` | `\"production\"` | Also from `SENTRY_ENVIRONMENT` env var |\n| `release` | `string` | — | Also from `SENTRY_RELEASE` env var |\n| `debug` | `boolean` | `false` | Log SDK activity to console |\n| `enabled` | `boolean` | `true` | Set `false` in tests to disable sending |\n| `sampleRate` | `number` | `1.0` | Fraction of error events to send (0–1) |\n| `shutdownTimeout` | `number` | `2000` | Milliseconds to flush events before process exit |\n\n### `nativeNodeFetchIntegration()` Options\n\nConfigures outgoing `fetch`\u002F`undici` span capture. Since `@opentelemetry\u002Finstrumentation-undici@0.22.0`, response headers like `content-length` are no longer captured automatically — use `headersToSpanAttributes` to opt in:\n\n```javascript\nSentry.init({\n  integrations: [\n    Sentry.nativeNodeFetchIntegration({\n      headersToSpanAttributes: {\n        requestHeaders: [\"x-request-id\"],\n        responseHeaders: [\"content-length\", \"content-type\"],\n      },\n    }),\n  ],\n});\n```\n\n| Option | Type | Default | Notes |\n|--------|------|---------|-------|\n| `breadcrumbs` | `boolean` | `true` | Record breadcrumbs for outgoing fetch requests |\n| `headersToSpanAttributes.requestHeaders` | `string[]` | — | Request header names to capture as span attributes |\n| `headersToSpanAttributes.responseHeaders` | `string[]` | — | Response header names to capture as span attributes |\n\n### `otlpIntegration()` Options (`@sentry\u002Fnode-core\u002Flight\u002Fotlp`)\n\nFor OTel-first projects using `@sentry\u002Fnode-core\u002Flight`. Import: `import { otlpIntegration } from '@sentry\u002Fnode-core\u002Flight\u002Fotlp'`.\n\n| Option | Type | Default | Purpose |\n|--------|------|---------|---------|\n| `setupOtlpTracesExporter` | `boolean` | `true` | Auto-configure OTLP exporter to send spans to Sentry; set `false` if you already export to your own Collector |\n| `collectorUrl` | `string` | `undefined` | OTLP HTTP endpoint of an OTel Collector (e.g., `http:\u002F\u002Flocalhost:4318\u002Fv1\u002Ftraces`); when set, spans are sent to the collector instead of the DSN-derived Sentry endpoint |\n\n### Graceful Shutdown\n\nFlush buffered events before process exit — important for short-lived scripts and serverless:\n\n```javascript\nprocess.on(\"SIGTERM\", async () => {\n  await Sentry.close(2000); \u002F\u002F flush with 2s timeout\n  process.exit(0);\n});\n```\n\n### Environment Variables\n\n| Variable | Purpose | Runtime |\n|----------|---------|---------|\n| `SENTRY_DSN` | DSN (alternative to hardcoding in `init()`) | All |\n| `SENTRY_ENVIRONMENT` | Deployment environment | All |\n| `SENTRY_RELEASE` | Release version string (auto-detected from git) | All |\n| `SENTRY_AUTH_TOKEN` | Source map upload token | Build time |\n| `SENTRY_ORG` | Org slug for source map upload | Build time |\n| `SENTRY_PROJECT` | Project slug for source map upload | Build time |\n| `NODE_OPTIONS` | Set `--import .\u002Finstrument.mjs` for ESM | Node.js |\n\n### Source Maps (Node.js)\n\nReadable stack traces in production require uploading source maps with `@sentry\u002Fcli` or the webpack\u002Fesbuild\u002Frollup plugins — for example, an inject + upload step in your build:\n\n```json\n{\n  \"scripts\": {\n    \"build\": \"tsc && sentry-cli sourcemaps inject .\u002Fdist && sentry-cli sourcemaps upload .\u002Fdist\"\n  }\n}\n```\n\nUpload needs a `SENTRY_AUTH_TOKEN` (a build-time secret). For creating the token and wiring it into CI, see [`sentry-source-maps`](..\u002Fsentry-source-maps\u002FSKILL.md).\n\n---\n\n## Verification\n\nAfter setup, verify Sentry is receiving events:\n\n```javascript\n\u002F\u002F Add temporarily to your entry file or a test route, then remove\nimport * as Sentry from \"@sentry\u002Fnode\"; \u002F\u002F or @sentry\u002Fbun \u002F @sentry\u002Fdeno\n\nSentry.captureException(new Error(\"Sentry test error — delete me\"));\n```\n\nOr trigger an unhandled exception:\n\n```javascript\n\u002F\u002F In a route handler or startup — will be captured automatically\nthrow new Error(\"Sentry test error — delete me\");\n```\n\nThen check your [Sentry Issues dashboard](https:\u002F\u002Fsentry.io\u002Fissues\u002F) — the error should appear within ~30 seconds.\n\n**Verification checklist:**\n\n| Check | How |\n|-------|-----|\n| Error captured | Throw in a handler, verify in Sentry Issues |\n| Tracing working | Check Performance tab — should show HTTP spans |\n| `includeLocalVariables` working | Stack frame in Sentry should show variable values |\n| Source maps working | Stack trace shows readable file names, not minified |\n\n---\n\n## Phase 4: Cross-Link\n\nAfter completing backend setup, check for companion services:\n\n```bash\n# Frontend companion\nls frontend\u002F web\u002F client\u002F ui\u002F 2>\u002Fdev\u002Fnull\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"react\"|\"vue\"|\"svelte\"|\"next\"'\n\n# Other backend services\nls ..\u002Fgo.mod ..\u002Frequirements.txt ..\u002FGemfile 2>\u002Fdev\u002Fnull\n```\n\nIf a frontend, framework-specific SDK, or other backend is found, suggest the matching skill:\n\n**Dedicated JavaScript framework skills (prefer these over generic node-sdk):**\n\n| Detected | Prefer skill | Why |\n|----------|-------------|-----|\n| NestJS (`@nestjs\u002Fcore` in `package.json`) | [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) | Uses `@sentry\u002Fnestjs` with NestJS-native decorators, filters, and GraphQL support |\n| Next.js (`next` in `package.json`) | [`sentry-nextjs-sdk`](..\u002Fsentry-nextjs-sdk\u002FSKILL.md) | Three-runtime architecture (browser, server, edge), `withSentryConfig`, source map upload |\n\n**Frontend companions:**\n\n| Detected | Suggest |\n|---------|---------|\n| React app (`react` in `package.json`) | [`sentry-react-sdk`](..\u002Fsentry-react-sdk\u002FSKILL.md) |\n| Svelte\u002FSvelteKit | [`sentry-svelte-sdk`](..\u002Fsentry-svelte-sdk\u002FSKILL.md) |\n\n**Other backend companions:**\n\n| Detected | Suggest |\n|---------|---------|\n| Go backend (`go.mod`) | [`sentry-go-sdk`](..\u002Fsentry-go-sdk\u002FSKILL.md) |\n| Python backend (`requirements.txt`, `pyproject.toml`) | [`sentry-python-sdk`](..\u002Fsentry-python-sdk\u002FSKILL.md) |\n| Ruby backend (`Gemfile`) | [`sentry-ruby-sdk`](..\u002Fsentry-ruby-sdk\u002FSKILL.md) |\n\nConnecting frontend and backend with the same DSN or linked projects enables **distributed tracing** — stack traces that span your browser, API server, and database in a single trace view.\n\n---\n\n## Troubleshooting\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Events not appearing | `instrument.js` loaded too late | Ensure it's the first `require()` \u002F loaded via `--import` or `--preload` |\n| Tracing spans missing | `tracesSampleRate` not set | Add `tracesSampleRate: 1.0` to `Sentry.init()` |\n| ESM instrumentation not working | Missing `--import` flag | Run with `node --import .\u002Finstrument.mjs`; `import \".\u002Finstrument.mjs\"` inside app is not sufficient |\n| `@sentry\u002Fprofiling-node` install fails on Bun | Native addon incompatible | Profiling is not supported on Bun — remove `@sentry\u002Fprofiling-node` |\n| Deno: events not sent | Missing `--allow-net` permission | Run with `--allow-net=o\u003CORG_ID>.ingest.sentry.io` |\n| Deno: `deno.land\u002Fx\u002Fsentry` not working | Deprecated and frozen at v8.55.0 | Switch to `npm:@sentry\u002Fdeno` specifier |\n| `includeLocalVariables` not showing values | Integration not activated or minified code | Ensure `includeLocalVariables: true` in init; check source maps |\n| NestJS: errors not captured | Wrong SDK or missing filter | Use [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) — NestJS needs `@sentry\u002Fnestjs`, not `@sentry\u002Fnode` |\n| Hapi: `setupHapiErrorHandler` timing issue | Not awaited | Must `await Sentry.setupHapiErrorHandler(server)` before `server.start()` |\n| Shutdown: events lost | Process exits before flush | Add `await Sentry.close(2000)` in SIGTERM\u002FSIGINT handler |\n| Stack traces show minified code | Source maps not uploaded | Configure `@sentry\u002Fcli` source map upload in build step |\n| No traces appearing (OTLP) | Missing `@opentelemetry\u002F*` packages or `otlpIntegration` not added | Verify `@opentelemetry\u002Fsdk-trace-node` is installed; add `otlpIntegration()` to `integrations`; do **not** set `tracesSampleRate` |\n| OTLP: errors not linked to traces | `otlpIntegration` not registered | Ensure `otlpIntegration()` is in the `integrations` array — it registers the propagation context that links errors to OTel traces |\n| Profiling not starting (OTLP) | Profiling requires `tracesSampleRate` | Profiling is **not compatible** with the OTLP path; use the standard `@sentry\u002Fnode` setup instead |\n","> [All Skills](..\u002F..\u002FSKILL_TREE.md) > [SDK Setup](..\u002Fsentry-sdk-setup\u002FSKILL.md) > Node.js \u002F Bun \u002F Deno SDK\n\n# Sentry Node.js \u002F Bun \u002F Deno SDK\n\nOpinionated wizard that scans your project and guides you through complete Sentry setup for server-side JavaScript and TypeScript runtimes: Node.js, Bun, and Deno.\n\n## Invoke This Skill When\n\n- User asks to \"add Sentry to Node.js\", \"Bun\", or \"Deno\"\n- User wants to install or configure `@sentry\u002Fnode`, `@sentry\u002Fbun`, or `@sentry\u002Fdeno`\n- User wants error monitoring, tracing, logging, profiling, crons, metrics, or AI monitoring for a backend JS\u002FTS app\n- User asks about `instrument.js`, `--import .\u002Finstrument.mjs`, `bun --preload`, or `npm:@sentry\u002Fdeno`\n- User wants to monitor Express, Fastify, Koa, Hapi, Connect, Bun.serve(), or Deno.serve()\n\n> **NestJS?** Use [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) instead — it uses `@sentry\u002Fnestjs` with NestJS-native decorators and filters.\n> **Next.js?** Use [`sentry-nextjs-sdk`](..\u002Fsentry-nextjs-sdk\u002FSKILL.md) instead — it handles the three-runtime architecture (browser, server, edge).\n\n> **Note:** SDK versions below reflect current Sentry docs at time of writing (`@sentry\u002Fnode` ≥10.42.0, `@sentry\u002Fbun` ≥10.42.0, `@sentry\u002Fdeno` ≥10.42.0).\n> Always verify against [docs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002F) before implementing.\n\n---\n\n## Phase 1: Detect\n\nRun these commands to identify the runtime, framework, and existing Sentry setup:\n\n```bash\n# Detect runtime\nbun --version 2>\u002Fdev\u002Fnull && echo \"Bun detected\"\ndeno --version 2>\u002Fdev\u002Fnull && echo \"Deno detected\"\nnode --version 2>\u002Fdev\u002Fnull && echo \"Node.js detected\"\n\n# Detect existing Sentry packages\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"@sentry\u002F'\ncat deno.json deno.jsonc 2>\u002Fdev\u002Fnull | grep -i sentry\n\n# Detect Node.js framework\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"express\"|\"fastify\"|\"@hapi\u002Fhapi\"|\"koa\"|\"@nestjs\u002Fcore\"|\"connect\"'\n\n# Detect Bun-specific frameworks\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"elysia\"|\"hono\"'\n\n# Detect Deno frameworks (deno.json imports)\ncat deno.json deno.jsonc 2>\u002Fdev\u002Fnull | grep -E '\"oak\"|\"hono\"|\"fresh\"'\n\n# Detect module system (Node.js)\ncat package.json 2>\u002Fdev\u002Fnull | grep '\"type\"'\nls *.mjs *.cjs 2>\u002Fdev\u002Fnull | head -5\n\n# Detect existing instrument file\nls instrument.js instrument.mjs instrument.ts instrument.cjs 2>\u002Fdev\u002Fnull\n\n# Detect logging libraries\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"winston\"|\"pino\"|\"bunyan\"'\n\n# Detect cron \u002F scheduling\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"node-cron\"|\"cron\"|\"agenda\"|\"bull\"|\"bullmq\"'\n\n# Detect AI \u002F LLM usage\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"openai\"|\"@anthropic-ai\"|\"@langchain\"|\"@vercel\u002Fai\"|\"@google\u002Fgenerative-ai\"'\n\n# Detect OpenTelemetry tracing\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"@opentelemetry\u002Fsdk-node\"|\"@opentelemetry\u002Fsdk-trace-node\"|\"@opentelemetry\u002Fsdk-trace-base\"'\ngrep -rn \"NodeTracerProvider\\|trace\\.getTracer\\|startActiveSpan\" \\\n  --include=\"*.ts\" --include=\"*.js\" --include=\"*.mjs\" 2>\u002Fdev\u002Fnull | head -5\n\n# Check for companion frontend\nls frontend\u002F web\u002F client\u002F ui\u002F 2>\u002Fdev\u002Fnull\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"react\"|\"vue\"|\"svelte\"|\"next\"'\n```\n\n**What to determine:**\n\n| Question | Impact |\n|----------|--------|\n| Which runtime? (Node.js \u002F Bun \u002F Deno) | Determines package, init pattern, and preload flag |\n| Node.js: ESM or CJS? | ESM requires `--import .\u002Finstrument.mjs`; CJS uses `require(\".\u002Finstrument\")` |\n| Framework detected? | Determines which error handler to register |\n| `@sentry\u002F*` already installed? | Skip install, go straight to feature config |\n| `instrument.js` \u002F `instrument.mjs` already exists? | Merge into it rather than overwrite |\n| Logging library detected? | Recommend Sentry Logs |\n| Cron \u002F job scheduler detected? | Recommend Crons monitoring |\n| AI library detected? | Recommend AI Monitoring |\n| OpenTelemetry tracing detected? | Use OTLP path instead of native tracing |\n| Companion frontend found? | Trigger Phase 4 cross-link |\n\n---\n\n## Phase 2: Recommend\n\nPresent a concrete recommendation based on what you found. Don't ask open-ended questions — lead with a proposal:\n\n**Route from OTel detection:**\n- **OTel tracing detected** (`@opentelemetry\u002Fsdk-node` or `@opentelemetry\u002Fsdk-trace-node` in `package.json`, or `NodeTracerProvider` in source) → use OTLP path: `otlpIntegration()` via `@sentry\u002Fnode-core\u002Flight`; do **not** set `tracesSampleRate`; Sentry links errors to OTel traces automatically\n\n**Recommended (core coverage):**\n- ✅ **Error Monitoring** — always; captures unhandled exceptions, promise rejections, and framework errors\n- ✅ **Tracing** — automatic HTTP, DB, and queue instrumentation via OpenTelemetry\n\n**Optional (enhanced observability):**\n- ⚡ **Logging** — structured logs via `Sentry.logger.*`; recommend when `winston`\u002F`pino`\u002F`bunyan` or log search is needed\n- ⚡ **Profiling** — continuous CPU profiling (Node.js only; not available on Bun or Deno); **not available with OTLP path**\n- ⚡ **AI Monitoring** — OpenAI, Anthropic, LangChain, Vercel AI SDK; recommend when AI\u002FLLM calls detected\n- ⚡ **Crons** — detect missed or failed scheduled jobs; recommend when node-cron, Bull, or Agenda is detected\n- ⚡ **Metrics** — custom counters, gauges, distributions; recommend when custom KPIs needed\n- ⚡ **Runtime Metrics** — automatic collection of memory, CPU, and event loop metrics; `nodeRuntimeMetricsIntegration()` (Node.js) \u002F `bunRuntimeMetricsIntegration()` (Bun)\n\n**Recommendation logic:**\n\n| Feature | Recommend when... |\n|---------|------------------|\n| Error Monitoring | **Always** — non-negotiable baseline |\n| OTLP Integration | OTel tracing detected — **replaces** native Tracing |\n| Tracing | **Always for server apps** — HTTP spans + DB spans are high-value; **skip if OTel tracing detected** |\n| Logging | App uses winston, pino, bunyan, or needs log-to-trace correlation |\n| Profiling | **Node.js only** — performance-critical service; native addon compatible; **skip if OTel tracing detected** (requires `tracesSampleRate`, incompatible with OTLP) |\n| AI Monitoring | App calls OpenAI, Anthropic, LangChain, Vercel AI, or Google GenAI |\n| Crons | App uses node-cron, Bull, BullMQ, Agenda, or any scheduled task pattern |\n| Metrics | App needs custom counters, gauges, or histograms |\n| Runtime Metrics | Any Node.js or Bun service wanting automatic memory\u002FCPU\u002Fevent-loop visibility |\n\n**OTel tracing detected:** *\"I see OpenTelemetry tracing in the project. I recommend Sentry's OTLP integration for tracing (via your existing OTel setup) + Error Monitoring + Sentry Logging [+ Metrics\u002FCrons\u002FAI Monitoring if applicable]. Shall I proceed?\"*\n\n**No OTel:** *\"I recommend setting up Error Monitoring + Tracing. Want me to also add Logging or Profiling?\"*\n\n---\n\n## Phase 3: Guide\n\n### Runtime: Node.js\n\n#### Option 1: Wizard (Recommended for Node.js)\n\n> **You need to run this yourself** — the wizard opens a browser for login and requires interactive input that the agent can't handle. Copy-paste into your terminal:\n>\n> ```\n> npx @sentry\u002Fwizard@latest -i node\n> ```\n>\n> It handles login, org\u002Fproject selection, SDK installation, `instrument.js` creation, and package.json script updates.\n>\n> **Once it finishes, come back and skip to [Verification](#verification).**\n\nIf the user skips the wizard, proceed with Option 2 (Manual Setup) below.\n\n---\n\n#### Option 2: Manual Setup — Node.js\n\n##### Install\n\n```bash\nnpm install @sentry\u002Fnode --save\n# or\nyarn add @sentry\u002Fnode\n# or\npnpm add @sentry\u002Fnode\n```\n\n##### Create the Instrument File\n\n**CommonJS (`instrument.js`):**\n\n```javascript\n\u002F\u002F instrument.js — must be loaded before all other modules\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? \"___DSN___\",\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n\n  \u002F\u002F 100% in dev, lower in production\n  tracesSampleRate: process.env.NODE_ENV === \"development\" ? 1.0 : 0.1,\n\n  \u002F\u002F Capture local variable values in stack frames\n  includeLocalVariables: true,\n\n  enableLogs: true,\n});\n```\n\n**ESM (`instrument.mjs`):**\n\n```javascript\n\u002F\u002F instrument.mjs — loaded via --import flag before any other module\nimport * as Sentry from \"@sentry\u002Fnode\";\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? \"___DSN___\",\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n  tracesSampleRate: process.env.NODE_ENV === \"development\" ? 1.0 : 0.1,\n  includeLocalVariables: true,\n  enableLogs: true,\n});\n```\n\n##### Start Your App with Sentry Loaded First\n\n**CommonJS** — add `require(\".\u002Finstrument\")` as the very first line of your entry file:\n\n```javascript\n\u002F\u002F app.js\nrequire(\".\u002Finstrument\"); \u002F\u002F must be first\n\nconst express = require(\"express\");\n\u002F\u002F ... rest of your app\n```\n\n**ESM** — use the `--import` flag so Sentry loads before all other modules (Node.js 18.19.0+ required):\n\n```bash\nnode --import .\u002Finstrument.mjs app.mjs\n```\n\nAdd to `package.json` scripts:\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"node --import .\u002Finstrument.mjs server.mjs\",\n    \"dev\": \"node --import .\u002Finstrument.mjs --watch server.mjs\"\n  }\n}\n```\n\nOr via environment variable (useful for wrapping existing start commands):\n\n```bash\nNODE_OPTIONS=\"--import .\u002Finstrument.mjs\" npm start\n```\n\n##### Framework Error Handlers\n\nRegister the Sentry error handler **after all routes** so it can capture framework errors:\n\n**Express:**\n\n```javascript\nconst express = require(\"express\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst app = express();\n\n\u002F\u002F ... your routes\n\n\u002F\u002F Add AFTER all routes — captures 5xx errors by default\nSentry.setupExpressErrorHandler(app);\n\n\u002F\u002F Optional: capture 4xx errors too\n\u002F\u002F Sentry.setupExpressErrorHandler(app, {\n\u002F\u002F   shouldHandleError(error) { return error.status >= 400; },\n\u002F\u002F });\n\napp.listen(3000);\n```\n\n**Fastify:**\n\n```javascript\nconst Fastify = require(\"fastify\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst fastify = Fastify();\n\n\u002F\u002F Add BEFORE routes (unlike Express!)\nSentry.setupFastifyErrorHandler(fastify);\n\n\u002F\u002F ... your routes\n\nawait fastify.listen({ port: 3000 });\n```\n\n**Koa:**\n\n```javascript\nconst Koa = require(\"koa\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst app = new Koa();\n\n\u002F\u002F Add as FIRST middleware (catches errors thrown by later middleware)\nSentry.setupKoaErrorHandler(app);\n\n\u002F\u002F ... your other middleware and routes\n\napp.listen(3000);\n```\n\n**Hapi (async — must await):**\n\n```javascript\nconst Hapi = require(\"@hapi\u002Fhapi\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst server = Hapi.server({ port: 3000 });\n\n\u002F\u002F ... your routes\n\n\u002F\u002F Must await — Hapi registration is async\nawait Sentry.setupHapiErrorHandler(server);\n\nawait server.start();\n```\n\n**Connect:**\n\n```javascript\nconst connect = require(\"connect\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst app = connect();\n\n\u002F\u002F Add BEFORE routes (like Fastify and Koa)\nSentry.setupConnectErrorHandler(app);\n\n\u002F\u002F ... your middleware and routes\n\nrequire(\"http\").createServer(app).listen(3000);\n```\n\n**NestJS** — has its own dedicated skill with full coverage:\n\n> **Use the [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) skill instead.**\n> NestJS uses a separate package (`@sentry\u002Fnestjs`) with NestJS-native constructs:\n> `SentryModule.forRoot()`, `SentryGlobalFilter`, `@SentryTraced`, `@SentryCron` decorators,\n> and GraphQL\u002FMicroservices support. Load that skill for complete NestJS setup.\n\n**Vanilla Node.js `http` module** — wrap request handler manually:\n\n```javascript\nconst http = require(\"http\");\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nconst server = http.createServer((req, res) => {\n  Sentry.withIsolationScope(() => {\n    try {\n      \u002F\u002F your handler\n      res.end(\"OK\");\n    } catch (err) {\n      Sentry.captureException(err);\n      res.writeHead(500);\n      res.end(\"Internal Server Error\");\n    }\n  });\n});\n\nserver.listen(3000);\n```\n\n**Framework error handler summary:**\n\n| Framework | Function | Placement | Async? |\n|-----------|----------|-----------|--------|\n| Express | `setupExpressErrorHandler(app)` | **After** all routes | No |\n| Fastify | `setupFastifyErrorHandler(fastify)` | **Before** routes | No |\n| Koa | `setupKoaErrorHandler(app)` | **First** middleware | No |\n| Hapi | `setupHapiErrorHandler(server)` | Before `server.start()` | **Yes** |\n| Connect | `setupConnectErrorHandler(app)` | **Before** routes | No |\n| NestJS | → Use [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) | Dedicated skill | — |\n\n---\n\n### Runtime: Bun\n\n> **No wizard available for Bun.** Manual setup only.\n\n#### Install\n\n```bash\nbun add @sentry\u002Fbun\n```\n\n#### Create `instrument.ts` (or `instrument.js`)\n\n```typescript\n\u002F\u002F instrument.ts\nimport * as Sentry from \"@sentry\u002Fbun\";\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? \"___DSN___\",\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n  tracesSampleRate: process.env.NODE_ENV === \"development\" ? 1.0 : 0.1,\n  enableLogs: true,\n});\n```\n\n#### Start Your App with `--preload`\n\n```bash\nbun --preload .\u002Finstrument.ts server.ts\n```\n\nAdd to `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"bun --preload .\u002Finstrument.ts server.ts\",\n    \"dev\": \"bun --watch --preload .\u002Finstrument.ts server.ts\"\n  }\n}\n```\n\n#### Bun.serve() — Auto-Instrumentation\n\n`@sentry\u002Fbun` automatically instruments `Bun.serve()` via JavaScript Proxy. No extra setup is required — just initialize with `--preload` and your `Bun.serve()` calls are traced:\n\n```typescript\n\u002F\u002F server.ts\nconst server = Bun.serve({\n  port: 3000,\n  fetch(req) {\n    return new Response(\"Hello from Bun!\");\n  },\n});\n```\n\n#### Framework Error Handlers on Bun\n\nBun can run Express, Fastify, Hono, and Elysia. Use the same `@sentry\u002Fbun` import and the `@sentry\u002Fnode` error handler functions (re-exported by `@sentry\u002Fbun`):\n\n```typescript\nimport * as Sentry from \"@sentry\u002Fbun\";\nimport express from \"express\";\n\nconst app = express();\n\u002F\u002F ... routes\nSentry.setupExpressErrorHandler(app);\napp.listen(3000);\n```\n\n#### Bun Feature Support\n\n| Feature | Bun Support | Notes |\n|---------|-------------|-------|\n| Error Monitoring | ✅ Full | Same API as Node |\n| Tracing | ✅ Via `@sentry\u002Fnode` OTel | Most auto-instrumentations work |\n| Logging | ✅ Full | `enableLogs: true` + `Sentry.logger.*` |\n| Profiling | ❌ Not available | `@sentry\u002Fprofiling-node` uses native addons incompatible with Bun |\n| Metrics | ✅ Full | `Sentry.metrics.*` |\n| Runtime Metrics | ✅ Full | `bunRuntimeMetricsIntegration()` — memory, CPU, event loop (no event loop delay percentiles) |\n| Crons | ✅ Full | `Sentry.withMonitor()` |\n| AI Monitoring | ✅ Full | OpenAI, Anthropic integrations work |\n\n---\n\n### Runtime: Deno\n\n> **No wizard available for Deno.** Manual setup only.\n> **Requires Deno 2.0+.** Deno 1.x is not supported.\n> **Use `npm:` specifier.** The `deno.land\u002Fx\u002Fsentry` registry is deprecated.\n\n#### Install via `deno.json` (Recommended)\n\n```json\n{\n  \"imports\": {\n    \"@sentry\u002Fdeno\": \"npm:@sentry\u002Fdeno@10.42.0\"\n  }\n}\n```\n\nOr import directly with the `npm:` specifier:\n\n```typescript\nimport * as Sentry from \"npm:@sentry\u002Fdeno\";\n```\n\n#### Initialize — Add to Entry File\n\n```typescript\n\u002F\u002F main.ts — Sentry.init() must be called before any other code\nimport * as Sentry from \"@sentry\u002Fdeno\";\n\nSentry.init({\n  dsn: Deno.env.get(\"SENTRY_DSN\") ?? \"___DSN___\",\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n  tracesSampleRate: Deno.env.get(\"DENO_ENV\") === \"development\" ? 1.0 : 0.1,\n  enableLogs: true,\n});\n\n\u002F\u002F Your application code follows\nDeno.serve({ port: 8000 }, (req) => {\n  return new Response(\"Hello from Deno!\");\n});\n```\n\n> Unlike Node.js and Bun, Deno does not have a `--preload` or `--import` flag. Sentry must be the first `import` in your entry file.\n\n#### Required Deno Permissions\n\nThe SDK requires network access to reach your Sentry ingest domain:\n\n```bash\ndeno run \\\n  --allow-net=o\u003CORG_ID>.ingest.sentry.io \\\n  --allow-read=.\u002Fsrc \\\n  --allow-env=SENTRY_DSN,SENTRY_RELEASE \\\n  main.ts\n```\n\nFor development, `--allow-all` works but is not recommended for production.\n\n#### Deno Cron Integration\n\nDeno provides native cron scheduling. Use `denoCronIntegration` for automatic monitoring:\n\n```typescript\nimport * as Sentry from \"@sentry\u002Fdeno\";\nimport { denoCronIntegration } from \"@sentry\u002Fdeno\";\n\nSentry.init({\n  dsn: Deno.env.get(\"SENTRY_DSN\") ?? \"___DSN___\",\n  integrations: [denoCronIntegration()],\n});\n\n\u002F\u002F Cron is automatically monitored\nDeno.cron(\"daily-cleanup\", \"0 0 * * *\", () => {\n  \u002F\u002F cleanup logic\n});\n```\n\n#### Deno Feature Support\n\n| Feature | Deno Support | Notes |\n|---------|-------------|-------|\n| Error Monitoring | ✅ Full | Unhandled exceptions + `captureException` |\n| Tracing | ✅ Custom OTel | Automatic spans for `Deno.serve()` and `fetch` |\n| Logging | ✅ Full | `enableLogs: true` + `Sentry.logger.*` |\n| Profiling | ❌ Not available | No profiling addon for Deno |\n| Metrics | ✅ Full | `Sentry.metrics.*` |\n| Runtime Metrics | ❌ Not available | No runtime metrics integration for Deno |\n| Crons | ✅ Full | `denoCronIntegration()` + `Sentry.withMonitor()` |\n| AI Monitoring | ✅ Partial | Vercel AI SDK integration works; OpenAI\u002FAnthropic via `npm:` |\n\n---\n\n### OTLP Integration (OTel-First Projects — Node.js Only)\n\n> Use this path **only when OpenTelemetry tracing was detected** in Phase 1\n> (e.g., `@opentelemetry\u002Fsdk-node` or `@opentelemetry\u002Fsdk-trace-node` in `package.json`).\n> For projects without an existing OTel setup, use the standard `@sentry\u002Fnode` path above.\n\nThe OTLP integration uses `@sentry\u002Fnode-core\u002Flight` — a lightweight Sentry SDK that does not bundle its own OpenTelemetry. Instead, it hooks into the user's existing OTel `TracerProvider` and exports spans to Sentry via OTLP.\n\n#### When to Use\n\n| Scenario | Recommended path |\n|----------|-----------------|\n| New project, no existing OTel | Standard `@sentry\u002Fnode` (above) — includes built-in OTel |\n| Existing OTel setup, want Sentry tracing | `@sentry\u002Fnode-core\u002Flight` + `otlpIntegration()` |\n| Existing OTel setup, sending to own Collector | `@sentry\u002Fnode-core\u002Flight` + `otlpIntegration({ collectorUrl })` |\n\n#### Install\n\n```bash\nnpm install @sentry\u002Fnode-core @opentelemetry\u002Fapi @opentelemetry\u002Fsdk-trace-node @opentelemetry\u002Fsdk-trace-base\n# or\nyarn add @sentry\u002Fnode-core @opentelemetry\u002Fapi @opentelemetry\u002Fsdk-trace-node @opentelemetry\u002Fsdk-trace-base\n# or\npnpm add @sentry\u002Fnode-core @opentelemetry\u002Fapi @opentelemetry\u002Fsdk-trace-node @opentelemetry\u002Fsdk-trace-base\n```\n\n> The `@opentelemetry\u002F*` packages are peer dependencies. If the project already has them installed, skip duplicates.\n\n#### Initialize\n\n```javascript\n\u002F\u002F instrument.mjs — load via --import flag before any other module\nimport { NodeTracerProvider } from '@opentelemetry\u002Fsdk-trace-node';\nimport * as Sentry from '@sentry\u002Fnode-core\u002Flight';\nimport { otlpIntegration } from '@sentry\u002Fnode-core\u002Flight\u002Fotlp';\n\n\u002F\u002F Register the user's OTel TracerProvider first\nconst provider = new NodeTracerProvider();\nprovider.register();\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? '___DSN___',\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fnode\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n  enableLogs: true,\n\n  \u002F\u002F Do NOT set tracesSampleRate — OTel controls sampling\n  integrations: [\n    otlpIntegration({\n      \u002F\u002F Export OTel spans to Sentry via OTLP (default: true)\n      setupOtlpTracesExporter: true,\n    }),\n  ],\n});\n```\n\n**With a custom Collector endpoint:**\n\n```javascript\nSentry.init({\n  dsn: process.env.SENTRY_DSN ?? '___DSN___',\n  integrations: [\n    otlpIntegration({\n      collectorUrl: 'http:\u002F\u002Flocalhost:4318\u002Fv1\u002Ftraces',\n    }),\n  ],\n});\n```\n\n#### Start Your App\n\nSame `--import` pattern as the standard Node.js setup:\n\n```bash\nnode --import .\u002Finstrument.mjs app.mjs\n```\n\n#### Key Differences from Standard `@sentry\u002Fnode`\n\n| Aspect | `@sentry\u002Fnode` (standard) | `@sentry\u002Fnode-core\u002Flight` (OTLP) |\n|--------|--------------------------|----------------------------------|\n| OTel bundled | ✅ Yes — built-in TracerProvider | ❌ No — uses your existing provider |\n| Tracing control | `tracesSampleRate` in `Sentry.init()` | OTel SDK controls sampling |\n| Auto-instrumentation | ✅ Built-in (HTTP, DB, etc.) | ❌ You manage OTel instrumentations |\n| Profiling | ✅ Available | ❌ Not compatible |\n| Error ↔ trace linking | ✅ Automatic | ✅ Automatic (via `otlpIntegration`) |\n| Package size | Larger (includes OTel) | Smaller (light mode) |\n\n---\n\n### For Each Agreed Feature\n\nLoad the corresponding reference file and follow its steps:\n\n| Feature | Reference file | Load when... |\n|---------|---------------|-------------|\n| Error Monitoring | `references\u002Ferror-monitoring.md` | Always (baseline) — captures, scopes, enrichment, beforeSend |\n| OTLP Integration | See [OTLP Integration](#otlp-integration-otel-first-projects--nodejs-only) above | OTel tracing detected — **replaces** native Tracing |\n| Tracing | `references\u002Ftracing.md` | OTel auto-instrumentation, custom spans, distributed tracing, sampling; **skip if OTel tracing detected** |\n| Logging | `references\u002Flogging.md` | Structured logs, `Sentry.logger.*`, log-to-trace correlation |\n| Profiling | `references\u002Fprofiling.md` | Node.js only — CPU profiling, Bun\u002FDeno gaps documented; **skip if OTel tracing detected** |\n| Metrics | `references\u002Fmetrics.md` | Custom counters, gauges, distributions |\n| Runtime Metrics | See inline below | Automatic memory, CPU, and event loop metrics for Node.js and Bun |\n| Crons | `references\u002Fcrons.md` | Scheduled job monitoring, node-cron, Bull, Agenda, Deno.cron |\n| AI Monitoring | Load `sentry-setup-ai-monitoring` skill | OpenAI, Anthropic, LangChain, Vercel AI, Google GenAI |\n\nFor each feature: read the reference file, follow its steps exactly, and verify before moving on.\n\n### Runtime Metrics\n\nAutomatically collect Node.js and Bun runtime health metrics (memory, CPU utilization, event loop delay\u002Futilization, uptime) at a configurable interval. Metrics appear in Sentry's Metrics product under the `node.runtime.*` \u002F `bun.runtime.*` namespace.\n\n**Node.js** — add `nodeRuntimeMetricsIntegration()` to your `instrument.js`:\n\n```javascript\nconst Sentry = require(\"@sentry\u002Fnode\");\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN,\n  integrations: [\n    Sentry.nodeRuntimeMetricsIntegration(),\n    \u002F\u002F Optional: change collection interval (default 30 000 ms)\n    \u002F\u002F Sentry.nodeRuntimeMetricsIntegration({ collectionIntervalMs: 60_000 }),\n  ],\n});\n```\n\nMetrics collected by default: `node.runtime.mem.rss`, `node.runtime.mem.heap_used`, `node.runtime.mem.heap_total`, `node.runtime.cpu.utilization`, `node.runtime.event_loop.delay.p50`, `node.runtime.event_loop.delay.p99`, `node.runtime.event_loop.utilization`, `node.runtime.process.uptime`.\n\n**Bun** — add `bunRuntimeMetricsIntegration()` to your `instrument.ts`:\n\n```typescript\nimport * as Sentry from \"@sentry\u002Fbun\";\nimport { bunRuntimeMetricsIntegration } from \"@sentry\u002Fbun\";\n\nSentry.init({\n  dsn: process.env.SENTRY_DSN,\n  integrations: [\n    bunRuntimeMetricsIntegration(),\n    \u002F\u002F Optional: change collection interval (default 30 000 ms)\n    \u002F\u002F bunRuntimeMetricsIntegration({ collectionIntervalMs: 60_000 }),\n  ],\n});\n```\n\nMetrics collected: same as Node.js except no event loop delay percentiles (unavailable in Bun). Prefixed with `bun.runtime.*`.\n\n---\n\n## Configuration Reference\n\n### `Sentry.init()` Core Options\n\n| Option | Type | Default | Notes |\n|--------|------|---------|-------|\n| `dsn` | `string` | — | Required. Also from `SENTRY_DSN` env var |\n| `tracesSampleRate` | `number` | — | 0–1; required to enable tracing; **do not set when using OTLP path** |\n| `dataCollection` | `object` | conservative unless set | Fine-grained control over auto-collected categories (`userInfo`, `cookies`, `httpHeaders`, `httpBodies`, `queryParams`, `genAI`). When omitted, the SDK falls back to `sendDefaultPii` (default `false`). Passing the object — even `{}` — flips unset categories to their permissive defaults; opt out per category. |\n| `includeLocalVariables` | `boolean` | `false` | Add local variable values to stack frames (Node.js) |\n| `enableLogs` | `boolean` | `false` | Enable Sentry Logs product (v9.41.0+) |\n| `environment` | `string` | `\"production\"` | Also from `SENTRY_ENVIRONMENT` env var |\n| `release` | `string` | — | Also from `SENTRY_RELEASE` env var |\n| `debug` | `boolean` | `false` | Log SDK activity to console |\n| `enabled` | `boolean` | `true` | Set `false` in tests to disable sending |\n| `sampleRate` | `number` | `1.0` | Fraction of error events to send (0–1) |\n| `shutdownTimeout` | `number` | `2000` | Milliseconds to flush events before process exit |\n\n### `nativeNodeFetchIntegration()` Options\n\nConfigures outgoing `fetch`\u002F`undici` span capture. Since `@opentelemetry\u002Finstrumentation-undici@0.22.0`, response headers like `content-length` are no longer captured automatically — use `headersToSpanAttributes` to opt in:\n\n```javascript\nSentry.init({\n  integrations: [\n    Sentry.nativeNodeFetchIntegration({\n      headersToSpanAttributes: {\n        requestHeaders: [\"x-request-id\"],\n        responseHeaders: [\"content-length\", \"content-type\"],\n      },\n    }),\n  ],\n});\n```\n\n| Option | Type | Default | Notes |\n|--------|------|---------|-------|\n| `breadcrumbs` | `boolean` | `true` | Record breadcrumbs for outgoing fetch requests |\n| `headersToSpanAttributes.requestHeaders` | `string[]` | — | Request header names to capture as span attributes |\n| `headersToSpanAttributes.responseHeaders` | `string[]` | — | Response header names to capture as span attributes |\n\n### `otlpIntegration()` Options (`@sentry\u002Fnode-core\u002Flight\u002Fotlp`)\n\nFor OTel-first projects using `@sentry\u002Fnode-core\u002Flight`. Import: `import { otlpIntegration } from '@sentry\u002Fnode-core\u002Flight\u002Fotlp'`.\n\n| Option | Type | Default | Purpose |\n|--------|------|---------|---------|\n| `setupOtlpTracesExporter` | `boolean` | `true` | Auto-configure OTLP exporter to send spans to Sentry; set `false` if you already export to your own Collector |\n| `collectorUrl` | `string` | `undefined` | OTLP HTTP endpoint of an OTel Collector (e.g., `http:\u002F\u002Flocalhost:4318\u002Fv1\u002Ftraces`); when set, spans are sent to the collector instead of the DSN-derived Sentry endpoint |\n\n### Graceful Shutdown\n\nFlush buffered events before process exit — important for short-lived scripts and serverless:\n\n```javascript\nprocess.on(\"SIGTERM\", async () => {\n  await Sentry.close(2000); \u002F\u002F flush with 2s timeout\n  process.exit(0);\n});\n```\n\n### Environment Variables\n\n| Variable | Purpose | Runtime |\n|----------|---------|---------|\n| `SENTRY_DSN` | DSN (alternative to hardcoding in `init()`) | All |\n| `SENTRY_ENVIRONMENT` | Deployment environment | All |\n| `SENTRY_RELEASE` | Release version string (auto-detected from git) | All |\n| `SENTRY_AUTH_TOKEN` | Source map upload token | Build time |\n| `SENTRY_ORG` | Org slug for source map upload | Build time |\n| `SENTRY_PROJECT` | Project slug for source map upload | Build time |\n| `NODE_OPTIONS` | Set `--import .\u002Finstrument.mjs` for ESM | Node.js |\n\n### Source Maps (Node.js)\n\nReadable stack traces in production require uploading source maps with `@sentry\u002Fcli` or the webpack\u002Fesbuild\u002Frollup plugins — for example, an inject + upload step in your build:\n\n```json\n{\n  \"scripts\": {\n    \"build\": \"tsc && sentry-cli sourcemaps inject .\u002Fdist && sentry-cli sourcemaps upload .\u002Fdist\"\n  }\n}\n```\n\nUpload needs a `SENTRY_AUTH_TOKEN` (a build-time secret). For creating the token and wiring it into CI, see [`sentry-source-maps`](..\u002Fsentry-source-maps\u002FSKILL.md).\n\n---\n\n## Verification\n\nAfter setup, verify Sentry is receiving events:\n\n```javascript\n\u002F\u002F Add temporarily to your entry file or a test route, then remove\nimport * as Sentry from \"@sentry\u002Fnode\"; \u002F\u002F or @sentry\u002Fbun \u002F @sentry\u002Fdeno\n\nSentry.captureException(new Error(\"Sentry test error — delete me\"));\n```\n\nOr trigger an unhandled exception:\n\n```javascript\n\u002F\u002F In a route handler or startup — will be captured automatically\nthrow new Error(\"Sentry test error — delete me\");\n```\n\nThen check your [Sentry Issues dashboard](https:\u002F\u002Fsentry.io\u002Fissues\u002F) — the error should appear within ~30 seconds.\n\n**Verification checklist:**\n\n| Check | How |\n|-------|-----|\n| Error captured | Throw in a handler, verify in Sentry Issues |\n| Tracing working | Check Performance tab — should show HTTP spans |\n| `includeLocalVariables` working | Stack frame in Sentry should show variable values |\n| Source maps working | Stack trace shows readable file names, not minified |\n\n---\n\n## Phase 4: Cross-Link\n\nAfter completing backend setup, check for companion services:\n\n```bash\n# Frontend companion\nls frontend\u002F web\u002F client\u002F ui\u002F 2>\u002Fdev\u002Fnull\ncat package.json 2>\u002Fdev\u002Fnull | grep -E '\"react\"|\"vue\"|\"svelte\"|\"next\"'\n\n# Other backend services\nls ..\u002Fgo.mod ..\u002Frequirements.txt ..\u002FGemfile 2>\u002Fdev\u002Fnull\n```\n\nIf a frontend, framework-specific SDK, or other backend is found, suggest the matching skill:\n\n**Dedicated JavaScript framework skills (prefer these over generic node-sdk):**\n\n| Detected | Prefer skill | Why |\n|----------|-------------|-----|\n| NestJS (`@nestjs\u002Fcore` in `package.json`) | [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) | Uses `@sentry\u002Fnestjs` with NestJS-native decorators, filters, and GraphQL support |\n| Next.js (`next` in `package.json`) | [`sentry-nextjs-sdk`](..\u002Fsentry-nextjs-sdk\u002FSKILL.md) | Three-runtime architecture (browser, server, edge), `withSentryConfig`, source map upload |\n\n**Frontend companions:**\n\n| Detected | Suggest |\n|---------|---------|\n| React app (`react` in `package.json`) | [`sentry-react-sdk`](..\u002Fsentry-react-sdk\u002FSKILL.md) |\n| Svelte\u002FSvelteKit | [`sentry-svelte-sdk`](..\u002Fsentry-svelte-sdk\u002FSKILL.md) |\n\n**Other backend companions:**\n\n| Detected | Suggest |\n|---------|---------|\n| Go backend (`go.mod`) | [`sentry-go-sdk`](..\u002Fsentry-go-sdk\u002FSKILL.md) |\n| Python backend (`requirements.txt`, `pyproject.toml`) | [`sentry-python-sdk`](..\u002Fsentry-python-sdk\u002FSKILL.md) |\n| Ruby backend (`Gemfile`) | [`sentry-ruby-sdk`](..\u002Fsentry-ruby-sdk\u002FSKILL.md) |\n\nConnecting frontend and backend with the same DSN or linked projects enables **distributed tracing** — stack traces that span your browser, API server, and database in a single trace view.\n\n---\n\n## Troubleshooting\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Events not appearing | `instrument.js` loaded too late | Ensure it's the first `require()` \u002F loaded via `--import` or `--preload` |\n| Tracing spans missing | `tracesSampleRate` not set | Add `tracesSampleRate: 1.0` to `Sentry.init()` |\n| ESM instrumentation not working | Missing `--import` flag | Run with `node --import .\u002Finstrument.mjs`; `import \".\u002Finstrument.mjs\"` inside app is not sufficient |\n| `@sentry\u002Fprofiling-node` install fails on Bun | Native addon incompatible | Profiling is not supported on Bun — remove `@sentry\u002Fprofiling-node` |\n| Deno: events not sent | Missing `--allow-net` permission | Run with `--allow-net=o\u003CORG_ID>.ingest.sentry.io` |\n| Deno: `deno.land\u002Fx\u002Fsentry` not working | Deprecated and frozen at v8.55.0 | Switch to `npm:@sentry\u002Fdeno` specifier |\n| `includeLocalVariables` not showing values | Integration not activated or minified code | Ensure `includeLocalVariables: true` in init; check source maps |\n| NestJS: errors not captured | Wrong SDK or missing filter | Use [`sentry-nestjs-sdk`](..\u002Fsentry-nestjs-sdk\u002FSKILL.md) — NestJS needs `@sentry\u002Fnestjs`, not `@sentry\u002Fnode` |\n| Hapi: `setupHapiErrorHandler` timing issue | Not awaited | Must `await Sentry.setupHapiErrorHandler(server)` before `server.start()` |\n| Shutdown: events lost | Process exits before flush | Add `await Sentry.close(2000)` in SIGTERM\u002FSIGINT handler |\n| Stack traces show minified code | Source maps not uploaded | Configure `@sentry\u002Fcli` source map upload in build step |\n| No traces appearing (OTLP) | Missing `@opentelemetry\u002F*` packages or `otlpIntegration` not added | Verify `@opentelemetry\u002Fsdk-trace-node` is installed; add `otlpIntegration()` to `integrations`; do **not** set `tracesSampleRate` |\n| OTLP: errors not linked to traces | `otlpIntegration` not registered | Ensure `otlpIntegration()` is in the `integrations` array — it registers the propagation context that links errors to OTel traces |\n| Profiling not starting (OTLP) | Profiling requires `tracesSampleRate` | Profiling is **not compatible** with the OTLP path; use the standard `@sentry\u002Fnode` setup instead |\n",{"name":5,"parent":24,"license":15,"category":25,"description":7,"disable-model-invocation":26},"sentry-sdk-setup","sdk-setup",true,"main","b1e4ffadb4f933bbbcaa03a83f8b9929171ac28b",".agents\u002Fskills\u002Fsentry-node-sdk",0,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR","https:\u002F\u002Fgithub.com\u002FHazek-dc","2026-10-22 08:36:44",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill sentry-node-sdk",{"tool":40,"command":41},"bunx","bunx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill sentry-node-sdk",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill sentry-node-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-node-sdk\u002FSKILL.md",[47,53,57,61,65,69,73],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fai-monitoring.md","REFERENCE","参考文档",10392,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-node-sdk\u002Freferences\u002Fai-monitoring.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcrons.md",11575,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-node-sdk\u002Freferences\u002Fcrons.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Ferror-monitoring.md",32330,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-node-sdk\u002Freferences\u002Ferror-monitoring.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Flogging.md",11223,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-node-sdk\u002Freferences\u002Flogging.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fmetrics.md",8523,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-node-sdk\u002Freferences\u002Fmetrics.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fprofiling.md",11324,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-node-sdk\u002Freferences\u002Fprofiling.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Ftracing.md",25564,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-node-sdk\u002Freferences\u002Ftracing.md",[78,86,93,100,107,114],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7DS6GGYRZAYD33PFPS8Z2T3","testing-best-practices","Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.","MIT","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftesting-best-practices\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7DS6BC3AW7HTPRHE2TTVKWM","tailwindcss-development","Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex\u002Fgrid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3\u002Fv4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML\u002FCSS component, CSS file audits, build tool configuration, and vanilla CSS.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftailwindcss-development\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7DS66GE6B11MYJDVC74HXM4","laravel-best-practices","Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Flaravel-best-practices\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7DS5ZW717DMS6P1E90AQCKV","infer-conventions","Use this skill to analyze how a Laravel application is actually written and record its conventions as shared rules. Trigger when the user wants to detect, infer, document, or standardize project conventions or coding style, set up or grow `.ai\u002Frules`, resolve mixed or conflicting patterns (e.g. \"are we using Form Requests or inline validation?\"), or onboard agents and teammates to \"how we do things here\". Covers: a systematic sweep of ~49 Laravel convention dimensions (validation, models, architecture, testing, frontend, database, console), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai\u002Frules` files by hand.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finfer-conventions\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M7DS5W12RGCVJTFQJ1N0GB8E","inertia-react-development","Develops Inertia.js v2 React client-side applications. Activates when creating React pages, forms, or navigation; using \u003CLink>, \u003CForm>, useForm, or router; working with deferred props, prefetching, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finertia-react-development\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M7DS5PVDPMPCWSK2RXPDC9BB","deploying-to-cloud","Deploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to Cloud, create or manage applications, environments, databases, caches, object storage, queues, domains, instances, background processes, secrets, compute, scheduled tasks, or Laravel Cloud infrastructure; or check billing, usage, or spend. Triggers on deployment, shipping, Cloud management, environment setup, database provisioning, billing or usage queries, the `cloud` CLI, and Laravel Cloud deployment troubleshooting.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Fdeploying-to-cloud\u002FSKILL.md",[],[]]