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

ref(tracing): Remove Hub in Transaction.finish #3267

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

szokeasaurusrex
Copy link
Member

Rename Transaction.finish method's hub parameter to scope (in a backwards-compatible manner), and update the method so that it is using Scope API under the hood as much as possible.

Prerequisite for #3265

@szokeasaurusrex szokeasaurusrex self-assigned this Jul 10, 2024
@szokeasaurusrex szokeasaurusrex marked this pull request as draft July 10, 2024 12:19
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review July 10, 2024 12:28
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.

Looks good.

I left one comment, please check if NoOpSpan also needs an update.


def finish(
self,
scope=None, # type: Optional[sentry_sdk.Scope]
Copy link
Member

Choose a reason for hiding this comment

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

The signature of NoOpSpan.finish() probably also needs an update.

Rename `Transaction.finish` method's `hub` parameter to `scope` (in a backwards-compatible manner), and update the method so that it is using `Scope` API under the hood as much as possible.

Prerequisite for #3265
Make the same changes previously made to `Transaction.finish`.
@szokeasaurusrex szokeasaurusrex changed the base branch from master to szokeasaurusrex/simplify-capture-internal-exceptions July 10, 2024 14:39
Base automatically changed from szokeasaurusrex/simplify-capture-internal-exceptions to master July 10, 2024 14:44
@szokeasaurusrex szokeasaurusrex merged commit 1c86489 into master Jul 10, 2024
122 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/tracing-hub branch July 10, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants