Skip to content

feat(python): Add the 3.x migration guide #11327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
May 8, 2025

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Sep 11, 2024

We'll release an alpha version of the new major of the Python SDK soon. Preparing a migration guide to go with it.

Direct link to preview: https://sentry-docs-git-ivana-pythonmigration-guide-30.sentry.dev/platforms/python/migration/2.x-to-3.x

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline: ~8 April
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

Copy link

vercel bot commented Sep 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 8:03am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview May 6, 2025 8:03am
develop-docs ⬜️ Ignored (Inspect) Visit Preview May 6, 2025 8:03am

Copy link

codecov bot commented Sep 11, 2024

Bundle Report

Changes will increase total bundle size by 168 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 11.14MB 174 bytes (0.0%) ⬆️
sentry-docs-client-array-push 9.47MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.75MB -0.0%
../instrumentation.js -3 bytes 1.08MB -0.0%
9523.js -3 bytes 1.05MB -0.0%
../app/[[...path]]/page.js.nft.json 61 bytes 388.54kB 0.02%
../app/platform-redirect/page.js.nft.json 61 bytes 388.45kB 0.02%
../app/sitemap.xml/route.js.nft.json 61 bytes 386.42kB 0.02%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 868.7kB -0.0%
static/chunks/8165-*.js -3 bytes 410.1kB -0.0%
static/90BhbfJg33bumlvDLM31L/_buildManifest.js (New) 578 bytes 578 bytes 100.0% 🚀
static/90BhbfJg33bumlvDLM31L/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/jYozXpIJzN-*.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
static/jYozXpIJzN-*.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️

@getsantry
Copy link
Contributor

getsantry bot commented Feb 16, 2025

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added Stale and removed Stale labels Feb 16, 2025
@sfanahata
Copy link
Contributor

@sentrivana - I'm doing PR cleanups, and just checking in that you still want to keep this draft.

@sentrivana
Copy link
Contributor Author

@sfanahata Yes, let's keep this open please -- unless it's cluttering up things for you, in that case feel free to close and I'll reopen once we have some content.

@sentrivana sentrivana linked an issue Apr 23, 2025 that may be closed by this pull request
@sentrivana
Copy link
Contributor Author

sentrivana commented Apr 28, 2025

Thanks @sfanahata!

My biggest question is in how, when, or whether, this migration guide indicates a need to update our Python docs. There is quite a bit being deprecated and changed. What should we do with the existing docs referencing 2.x features?

The plan is to release an alpha version of SDK 3.0 soon (probably next week). We want to have the migration guide ready in the docs when the release is out so that folks who want to try out the alpha have nice human-readable instructions on how to upgrade.

After the alpha is out, we'll do some testing and dogfooding -- and work on a bigger docs update where we'll add 3.x-specific versions of existing pages (with set_attribute instead of set_data, etc.) that you can get to via the version picker. We want to support both folks on older SDKs and new for a while. So I wouldn't change existing pages, but rather add a set of separate pages on top. We'll take care of this in the coming weeks.

The goal is to have the docs fully up-to-date with the release of 3.0 stable (which is still some weeks away).

@sentrivana
Copy link
Contributor Author

Added an additional tiny section: 98af38e

@sentrivana
Copy link
Contributor Author

Also added an additional Alert to clarify that there is no stable 3.0 release yet: https://github.com/getsentry/sentry-docs/pull/11327/files#diff-b042f1a373d5c38a7136bf5c324bcea40a9a505402206f15e99521d6409abb46R7-R11

Copy link
Member

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some smaller wording suggestions and links. Up to you if you want to add them or not.

Otherwise: Great migration guide, shows how much we changed! :-)

@sentrivana sentrivana merged commit dd364bf into master May 8, 2025
11 checks passed
@sentrivana sentrivana deleted the ivana/python/migration-guide-3.0 branch May 8, 2025 08:04
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create migration guide for POTel
3 participants