Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/sentry-migration-deep-dive

@0d57af8
Run it yourself

Migrate to Sentry from other error tracking tools like Rollbar, Bugsnag, or New Relic. Use when replacing an existing error tracker with Sentry, running tools in parallel during a transition, or mapping API calls between providers. Trigger with phrases like "migrate to sentry", "switch from rollbar to sentry", "replace bugsnag with sentry", "sentry migration plan".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/sentry-migration-deep-dive

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈660 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Examples

Example 1: Full Express Migration from Rollbar

Request: "Migrate our Express API from Rollbar to Sentry"

Before (Rollbar):

import Rollbar from 'rollbar';
const rollbar = new Rollbar({
  accessToken: process.env.ROLLBAR_TOKEN,
  environment: process.env.NODE_ENV,
});
app.use(rollbar.errorHandler());

// In route handlers:
rollbar.error('Payment failed', { orderId });
rollbar.configure({ person: { id: user.id, email: user.email } });

After (Sentry):

import * as Sentry from '@sentry/node';
Sentry.init({
  dsn: process.env.SENTRY_DSN,
  environment: process.env.NODE_ENV,
  release: process.env.npm_package_version,
  tracesSampleRate: 0.2,
});
Sentry.setupExpressErrorHandler(app);

// In route handlers:
Sentry.captureException(new Error('Payment failed'));
Sentry.setContext('order', { orderId });
Sentry.setUser({ id: user.id, email: user.email });

Result: SDK replaced, parallel run for 2 weeks confirmed 98% error count parity, 3 alert rules migrated to Sentry Issue Alerts, Rollbar uninstalled after validation.

Example 2: React App Migration from Bugsnag

Request: "Replace Bugsnag with Sentry in our React SPA"

Changes:

  1. Replaced @bugsnag/js + @bugsnag/plugin-react with @sentry/react
  2. Swapped Bugsnag.notify() calls to Sentry.captureException()
  3. Replaced Bugsnag error boundary with <Sentry.ErrorBoundary>
  4. Converted leaveBreadcrumb() calls to Sentry.addBreadcrumb()

Result: 47 API call sites updated, error boundary covers 3 route segments, breadcrumb coverage maintained.

Example 3: New Relic Partial Migration

Request: "Move error tracking from New Relic to Sentry, keep APM in New Relic"

Approach: New Relic bundles error tracking with APM. Sentry replaces only the error tracking portion. Keep newrelic agent running for APM (response times, throughput, infrastructure). Add Sentry alongside for dedicated error tracking with better grouping and stack traces.

// Keep New Relic for APM
import 'newrelic';  // must be first import

// Add Sentry for error tracking
import * as Sentry from '@sentry/node';
Sentry.init({ dsn: process.env.SENTRY_DSN });

// Stop calling newrelic.noticeError() -- Sentry handles errors now
// Keep newrelic.recordCustomEvent() for APM custom metrics

Result: Error tracking moved to Sentry, APM stays in New Relic, total cost reduced by removing New Relic error tracking license seats.


Tons of Skills by Intent Solutions | jeremylongshore.com

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk LOW
  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Gen Agent Trust Hub8mo

    This skill facilitates the migration from various error tracking tools to Sentry. It includes configuration examples and instructions for SDK replacement using standard package managers and environment variables for configuration, posing no security risks.

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.51.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
compatibility
Designed for Claude Code
All 8 allowed tools
ReadWriteEditBash(npm:*)Bash(npx:*)Bash(node:*)GrepGlob
Other metadata
tags
[
  "saas",
  "sentry",
  "migration",
  "rollbar",
  "bugsnag",
  "new-relic",
  "error-tracking"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-migration-deep-dive