Title: Add `activate()` and `deactivate()` span API · Issue #4931 · getsentry/sentry-python · GitHub
Open Graph Title: Add `activate()` and `deactivate()` span API · Issue #4931 · getsentry/sentry-python
X Title: Add `activate()` and `deactivate()` span API · Issue #4931 · getsentry/sentry-python
Description: Right now, starting and finishing a span without the context manager is clunky, having to call __enter__() and __exit__(). We should consider porting activate() and deactivate() from potel-base. Note: naming TBD, as well as if we actuall...
Open Graph Description: Right now, starting and finishing a span without the context manager is clunky, having to call __enter__() and __exit__(). We should consider porting activate() and deactivate() from potel-base. No...
X Description: Right now, starting and finishing a span without the context manager is clunky, having to call __enter__() and __exit__(). We should consider porting activate() and deactivate() from potel-base. No...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/4931
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `activate()` and `deactivate()` span API","articleBody":"Right now, starting and finishing a span without the context manager is clunky, having to call `__enter__()` and `__exit__()`. We should consider porting `activate()` and `deactivate()` from `potel-base`.\n\nNote: naming TBD, as well as if we actually want this feature. Also consider how this interacts with the new span first API.\n\nReference PR from `potel-base`: https://github.com/getsentry/sentry-python/pull/4447","author":{"url":"https://github.com/sentrivana","@type":"Person","name":"sentrivana"},"datePublished":"2025-10-15T13:28:51Z","url":"https://github.com/getsentry/sentry-python/issues/4931"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9e2ac9c5-f335-c731-b8e5-7995c01245f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B390:BBAAA:1BD7BB:259B4F:6B00BE52 |
| html-safe-nonce | 4372a3f9c8c117bda6ae62ff4315f58737ac46f31b6de8dde4413ec10a3092e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzkwOkJCQUFBOjFCRDdCQjoyNTlCNEY6NkIwMEJFNTIiLCJ2aXNpdG9yX2lkIjoiNzU4Nzg5NjIzOTQ4NDYxNjI3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d78e684e142dfb0e17ec79153866fad4ee66931135253b932b0d4af47b0603d6 |
| hovercard-subject-tag | issue:3518060436 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/4931/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbe0d0d0bb623136ac7e0bdf23eb3e377c052a558441f7be4da518b510827a70/getsentry/sentry-python/issues/4931 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbe0d0d0bb623136ac7e0bdf23eb3e377c052a558441f7be4da518b510827a70/getsentry/sentry-python/issues/4931 |
| og:image:alt | Right now, starting and finishing a span without the context manager is clunky, having to call __enter__() and __exit__(). We should consider porting activate() and deactivate() from potel-base. No... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sentrivana |
| hostname | github.com |
| expected-hostname | github.com |
| None | 93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1fee81a280ea86312b69448e261b418189bfd5b5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width