Skip to content
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

Document scope forking in migration guide #10524

Open
szokeasaurusrex opened this issue Jun 27, 2024 · 0 comments · May be fixed by #10531
Open

Document scope forking in migration guide #10524

szokeasaurusrex opened this issue Jun 27, 2024 · 0 comments · May be fixed by #10531
Assignees
Labels
Platform: Python Team: Web Backend SDKs team-web-sdk-backend Type: Content Issues about the contents of our docs

Comments

@szokeasaurusrex
Copy link
Member

Core or SDK?

Platform/SDK

Which part? Which one?

Python

Description

Our migration guide is missing instructions for how to migrate code like the following to our new scope API:

import sentry_sdk

cloned_hub = sentry_sdk.Hub(my_hub)

Suggested Solution

The code should be changed like so:

import sentry_sdk

forked_isolation_scope = my_isolation_scope.fork()
@szokeasaurusrex szokeasaurusrex added Platform: Python Team: Web Backend SDKs team-web-sdk-backend Type: Content Issues about the contents of our docs labels Jun 27, 2024
@szokeasaurusrex szokeasaurusrex self-assigned this Jun 27, 2024
szokeasaurusrex added a commit that referenced this issue Jun 27, 2024
Document that Hub clones should be replaced with isolation scope forks.

Resolves #10524
@szokeasaurusrex szokeasaurusrex linked a pull request Jun 27, 2024 that will close this issue
6 tasks
@szokeasaurusrex szokeasaurusrex linked a pull request Jun 27, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Python Team: Web Backend SDKs team-web-sdk-backend Type: Content Issues about the contents of our docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant