sentry-hello-world

Featured

Capture your first test error with Sentry and verify it appears in the dashboard. Use when testing a new Sentry integration, verifying error capture works after install-auth, or learning how to enrich events with user context, tags, and breadcrumbs. Trigger with phrases like "test sentry", "sentry hello world", "verify sentry", "first sentry error", "sentry capture test".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Sentry Hello World ## Overview Send your first test events to Sentry — a captured message, a captured exception, and a fully-enriched error with user context, tags, and breadcrumbs — then verify each one appears in the Sentry dashboard. This skill covers both Node.js (`@sentry/node`) and Python (`sentry-sdk`). ## Prerequisites - Completed `sentry-install-auth` setup (SDK installed, DSN configured) - Valid `SENTRY_DSN` in environment variables - `instrument.mjs` loaded before app code (Node.js) or `sentry_sdk.init()` called (Python) - Network access to `*.ingest.sentry.io` ## Instructions ### Step 1 — Verify the SDK Is Active Before sending test events, confirm the SDK initialized correctly. If `getClient()` returns `undefined`, the SDK was never initialized — go back to `sentry-install-auth`. **TypeScript (Node.js):** ```typescript import * as Sentry from '@sentry/node'; const client = Sentry.getClient(); if (!client) { console.error('Sentry SDK not initialized. Ensure instrument.mjs is loaded first.'); console.error('Run with: node --import ./instrument.mjs your-script.mjs'); process.exit(1); } console.log('Sentry SDK active — DSN configured'); ``` **Python:** ```python import sentry_sdk client = sentry_sdk.Hub.current.client if client is None or client.dsn is None: print("Sentry SDK not initialized. Call sentry_sdk.init() first.") exit(1) print("Sentry SDK active — DSN configured") ``` ### Step 2 — Capture a Test Message `captureMessage` sends...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category