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.

referencesmigration-from-rollbar.md

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

Migration From Rollbar

Concept Mapping: Rollbar to Sentry

Rollbar uses "items" and "occurrences" where Sentry uses "issues" and "events." A Rollbar "item" groups related occurrences by fingerprint, equivalent to a Sentry "issue" grouping events.

SDK Replacement (Node.js)

// BEFORE: Rollbar initialization
import Rollbar from 'rollbar';
const rollbar = new Rollbar({
  accessToken: process.env.ROLLBAR_TOKEN,
  environment: process.env.NODE_ENV,
  codeVersion: process.env.npm_package_version,
  nodeSourceMaps: true,
});

// AFTER: Sentry initialization
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.1,
});

API Call Translation Table

Rollbar Sentry Notes
rollbar.error(err) Sentry.captureException(err) Direct replacement
rollbar.error(msg, err) Sentry.captureException(err) Message becomes event title
rollbar.warning(msg) Sentry.captureMessage(msg, 'warning') Second arg sets severity
rollbar.info(msg) Sentry.captureMessage(msg, 'info') Appears in breadcrumbs trail
rollbar.debug(msg) Sentry.captureMessage(msg, 'debug') Usually filtered by beforeSend
rollbar.configure({ person: { id, email } }) Sentry.setUser({ id, email }) Call once after auth
rollbar.configure({ payload: { custom: data } }) Sentry.setContext('custom', data) Appears in event context tab
rollbar.configure({ code_version }) Sentry.init({ release }) Set at init time
rollbar.configure({ checkIgnore: fn }) Sentry.init({ beforeSend: fn }) Return null to drop event
Custom fingerprinting via rollbar.error(msg, { fingerprint }) Sentry.withScope(s => { s.setFingerprint([...]) }) Controls issue grouping

Express Middleware Migration

// BEFORE: Rollbar Express middleware
import Rollbar from 'rollbar';
const rollbar = new Rollbar({ accessToken: process.env.ROLLBAR_TOKEN });
app.use(rollbar.errorHandler());

// AFTER: Sentry Express middleware (v8+)
import * as Sentry from '@sentry/node';
Sentry.init({ dsn: process.env.SENTRY_DSN });
Sentry.setupExpressErrorHandler(app);

Data Export

Export historical Rollbar data for reference (data does not import into Sentry, but provides context):

# Export recent items via Rollbar API
curl -s -H "X-Rollbar-Access-Token: $ROLLBAR_TOKEN" \
  "https://api.rollbar.com/api/1/items?status=active&level=error" \
  | jq '.result.items[] | {title: .title, total_occurrences: .total_occurrences, last_occurrence: .last_occurrence_timestamp}' \
  > rollbar-export.json

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