error-tracking
/error-tracking
Integruje śledzenie i monitoring błędów (Sentry, Datadog RUM, Bugsnag): source maps, breadcrumbs, śledzenie wydań, monitoring wydajności i konfigurację alertów.
- Autor
- claude-dev-suite ↗
- Repozytorium
- claude-dev-suite ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 21.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 21.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Integruje śledzenie i monitoring błędów (Sentry, Datadog RUM, Bugsnag): source maps, breadcrumbs, śledzenie wydań, monitoring wydajności i konfigurację alertów.
Wyzwalacze z opisu
Oryginalny opis (EN)
Error tracking and monitoring integration. Sentry, Datadog RUM, Bugsnag. Source maps, breadcrumbs, release tracking, performance monitoring, and alerting configuration. USE WHEN: user mentions "Sentry", "error tracking", "Bugsnag", "Datadog RUM", "crash reporting", "source maps", "release tracking", "error monitoring" DO NOT USE FOR: application logging - use logging skills; APM/tracing - use `opentelemetry`; structured error responses - use `error-handling`
Jak działa
- Sentry (Node.js / Express)
- Sentry (React)
- Sentry (Python)
- Sentry (Spring Boot)
- Source Maps Upload (CI/CD)
- Breadcrumbs
- Anti-Patterns
- Production Checklist
Podgląd SKILL.md
---
name: error-tracking
description: |
Error tracking and monitoring integration. Sentry, Datadog RUM, Bugsnag.
Source maps, breadcrumbs, release tracking, performance monitoring,
and alerting configuration.
USE WHEN: user mentions "Sentry", "error tracking", "Bugsnag", "Datadog RUM",
"crash reporting", "source maps", "release tracking", "error monitoring"
DO NOT USE FOR: application logging - use logging skills;
APM/tracing - use `opentelemetry`; structured error responses - use `error-handling`
allowed-tools: Read, Grep, Glob, Write, Edit
---
# Error Tracking
## Sentry (Node.js / Express)
```typescript
import * as Sentry from '@sentry/node';
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
release: process.env.APP_VERSION,
tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.1 : 1.0,
integrations: [Sentry.expressIntegration()],
});
// Must be first middleware
app.use(Sentry.expressErrorHandler());
// Add context
app.use((req, res, next) => {
Sentry.setUser({ id: req.user?.id, email: req.user?.email });
Sentry.setTag('tenant', req.tenantId);
next();
});
// Manual capture
try {
await riskyOperation();
} catch (error) {
Sentry.captureException(error, {
extra: { orderId, userId },
tags: { component: 'payment' },
});
}
```
## Sentry (React)
```tsx
import * as Sentry from '@sentry/react';
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: process.env.NODE_ENV,
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
tracesSampleRate: 0.1,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
// Error boundary
const SentryErrorBoundary = Sentry.withErrorBoundary(App, {
fallback: <ErrorPage />,
showDialog: true,
});
// Component-level
const ProfilePage = Sentry.withProfiler(Profile);
```
## Sentry (Python)
```python
import sentry_sdk
from sentry_sdk.integrations.fastapi import FastApiIntegration
sentry_sdk.init(
dsn=os.environ["SENTRY_DSN"],
environment=os.environ.get("ENV", "development"),
traces_sample_rate=0.1,
integrations=[FastApiIntegration()],
)
```
## Sentry (Spring Boot)
```xml
<dependency>
<groupId>io.sentry</groupId>
<artifactId>sentry-spring-boot-starter-jakarta</artifactId>
</dependency>
```
```yaml
sentry:
dsn: ${SENTRY_DSN}
environment: ${SPRING_PROFILES_ACTIVE}
traces-sample-rate: 0.1
```
## Source Maps Upload (CI/CD)
```yaml
# GitHub Actions
- name: Upload source maps to Sentry
run: |
npx @sentry/cli sourcemaps upload \
--release=${{ github.sha }} \
--org=my-org --project=my-app \
./dist
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
```
## Breadcrumbs
```typescript
Sentry.addBreadcrumb({
category: 'payment',
message: `Processing payment for order ${orderId}`,
level: 'info',
data: { orderId, amount },
});
```
## Anti-Patterns
| Anti-Pattern | Fix |
|--------------|-----|
| 100% trace sample rate in production | Use 0.1-0.2 for production |
| No source maps uploaded | Upload in CI/CD for readable stack traces |
| No release tracking | Set `release` to git SHA or version |
| Capturing expected errors | Only capture unexpected errors |
| No user context | Set user ID/email for debugging |
| PII in error data | Scrub sensitive fields in `beforeSend` |
## Production Checklist
- [ ] DSN configured per environment
- [ ] Source maps uploaded in CI/CD
- [ ] Release version set to git SHA
- [ ] Sample rate tuned (0.1-0.2 for production)
- [ ] User context attached
- [ ] Alert rules configured for error spikes
- [ ] PII scrubbing enabled
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · claude-dev-suite/claude-dev-suite | 100 | MIT |
| diet103/claude-code-infrastructure-showcase | 100 | MIT |
| jacob-balslev/skill-graph | 100 | Apache-2.0 |
| Amey-Thakur/AI-SKILLS | 90 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki 04f897e54201 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100sentry
Pomaga w monitoringu błędów w Sentry: śledzenie wyjątków, tracing wydajności, source maps, wydania i breadcrumbs przy diagnozowaniu stack trace'ów z produkcji. - 100sentry-performance-tracing
Konfiguruje w Sentry monitoring wydajności i śledzenie rozproszone, w tym śledzenie żądań i wydajności aplikacji. - 100sentry
Pomaga zintegrować Sentry z aplikacją: SDK, alerty, analiza stack trace'ów, wysyłka source maps, session replay i śledzenie kondycji wydań na produkcji. - 100typescript-sentry
Konfiguruje monitoring błędów i wydajności Sentry SDK dla Bun, Node.js i Next.js: przechwytywanie błędów, breadcrumbs, spany, monitoring cron, source mapy, logi i profilowanie. - 100sentry-migration-deep-dive
Prowadzi migrację do Sentry z innych narzędzi do śledzenia błędów, takich jak Rollbar, Bugsnag czy Raygun. - 95apm-observability
Planuje obserwowalność aplikacji: metryki, śledzenie rozproszone, logi, SLI i SLO, budżet błędów oraz alerty i dyżury.