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

/sentry-upgrade-migration

@0d57af8
Run it yourself

Upgrade Sentry SDK versions and migrate breaking API changes. Use when upgrading from Sentry v7 to v8, migrating Python SDK v1 to v2, replacing deprecated Hub/Transaction APIs, or running the migr8 codemod. Trigger: "upgrade sentry", "sentry migration", "sentry breaking changes", "migrate sentry v7 to v8", "update sentry sdk".

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referenceserrors.md

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

Error Handling Reference

Common Upgrade Errors

Error Cause Solution
Cannot find module '@sentry/hub' Package removed in v8 Replace hub imports with @sentry/node scope APIs
Cannot find module '@sentry/tracing' Package removed in v8 Remove import; tracing built into core packages
Sentry.startTransaction is not a function API removed in v8 Use Sentry.startSpan() callback pattern
Sentry.Handlers is not defined Express handlers removed in v8 Use Sentry.setupExpressErrorHandler(app)
new Integrations.X is not a constructor Classes removed in v8 Use Sentry.xIntegration() function form
Transport.send must return object Custom transport missing return value Return { statusCode: 200 } from makeRequest()
ERR_MODULE_NOT_FOUND on startup ESM init file missing or wrong path Create instrument.mjs, use node --import ./instrument.mjs
Cannot read properties of undefined Mixed @sentry/* package versions Align all packages to same major: npm ls | grep @sentry

Node.js Version Errors

Error Cause Solution
--import is not recognized Node.js < 18.19.0 Upgrade Node: nvm install 20
ESM resolution failures Node.js < 20.6.0 on 20.x line Upgrade to 20.6.0+: nvm install 20.6.0
require() of ES Module SDK v8 is ESM-only in some contexts Use --import flag or dynamic import()

Python SDK Errors

Error Cause Solution
AttributeError: configure_scope Removed in Python SDK v2 Use sentry_sdk.get_current_scope()
AttributeError: push_scope Removed in Python SDK v2 Use sentry_sdk.new_scope() context manager
Hub.current not available Hub pattern removed in v2 Use sentry_sdk.get_current_scope()
IntegrationError on init Integration API changed Most integrations auto-discover in v2; remove explicit setup

Post-Upgrade Verification Failures

Symptom Cause Solution
Events not appearing in dashboard DSN or init not loading Verify instrument.mjs loads before app code
Source maps not resolving Bundler plugin version mismatch Update @sentry/webpack-plugin to v2.14.2+
Traces missing child spans Old .startChild() calls not migrated Replace with nested Sentry.startSpan() calls
Performance data flat tracesSampleRate set to 0 Set tracesSampleRate: 0.2 (or appropriate rate)
Breadcrumbs not recording Auto-instrumentation not loading Ensure instrument.mjs runs via --import before app

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 SAFE
  • Gen Agent Trust Hub2mo

    The skill is designed to help developers upgrade Sentry SDKs and migrate deprecated API patterns. It is safe for its intended use, employing standard development tools and official Sentry packages. A low-severity risk of indirect prompt injection exists because the skill reads and analyzes project source code to identify and migrate breaking changes, which is a necessary part of the migration process.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

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 9 allowed tools
ReadWriteEditBash(npm:*)Bash(npx:*)Bash(pip:*)Bash(node:*)GrepGlob
Other metadata
tags
[
  "saas",
  "sentry",
  "migration",
  "upgrade",
  "sdk",
  "breaking-changes"
]

README badge

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