Title: Add BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring · Issue #122548 · python/cpython · GitHub
Open Graph Title: Add BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring · Issue #122548 · python/cpython
X Title: Add BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring · Issue #122548 · python/cpython
Description: Feature or enhancement Proposal: Proposal: Add BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring Deprecate the old BRANCH event (as it will be redundant) Monitoring BRANCH events implicitly monitors both the BRANCH_TAKEN and BRA...
Open Graph Description: Feature or enhancement Proposal: Proposal: Add BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring Deprecate the old BRANCH event (as it will be redundant) Monitoring BRANCH events implicitl...
X Description: Feature or enhancement Proposal: Proposal: Add BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring Deprecate the old BRANCH event (as it will be redundant) Monitoring BRANCH events implicitl...
Opengraph URL: https://github.com/python/cpython/issues/122548
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nProposal:\n\n* Add `BRANCH_TAKEN` and `BRANCH_NOT_TAKEN` events to `sys.monitoring`\n* Deprecate the old `BRANCH` event (as it will be redundant)\n* Monitoring `BRANCH` events implicitly monitors both the `BRANCH_TAKEN` and `BRANCH_NOT_TAKEN` events\n* Disabling a `BRANCH_TAKEN` event will implicitly disable the matching `BRANCH` event, but only for the taken branch\n* Disabling a `BRANCH_NOT_TAKEN` event will implicitly disable the matching `BRANCH` event, but only for the not-taken branch\n* Disabling a `BRANCH` event will implicitly disable the both the matching `BRANCH_TAKEN` and `BRANCH_NOT_TAKEN` events\n\nThis is fully backwards compatible.\n\n\n### Has this already been discussed elsewhere?\n\nI have already discussed this feature proposal on Discourse\n\n### Links to previous discussion of this feature:\n\n\n[Discussion](https://discuss.python.org/t/updating-sys-monitoring-how-branch-events-are-disabled/59527) which also links to prior discussions.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-122564\n* gh-128115\n\u003c!-- /gh-linked-prs --\u003e\n\n```[tasklist]\n### Tasks\n- [ ] https://github.com/python/cpython/issues/123044\n- [ ] https://github.com/python/cpython/issues/123048\n- [ ] https://github.com/python/cpython/issues/123050\n- [ ] https://github.com/python/cpython/issues/128375\n- [ ] https://github.com/python/cpython/issues/128533\n- [ ] https://github.com/python/cpython/issues/128534\n```\n","author":{"url":"https://github.com/markshannon","@type":"Person","name":"markshannon"},"datePublished":"2024-08-01T09:12:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/122548/cpython/issues/122548"}
| 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:b52926be-3e22-ab7c-7070-a380588fb7c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9092:27B1FA:1A7656:22EA85:696B34F7 |
| html-safe-nonce | 6bdb820dcd56663aa19cc23437addfe95bc045b46e04cd83aec51f0bfa93636e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDkyOjI3QjFGQToxQTc2NTY6MjJFQTg1OjY5NkIzNEY3IiwidmlzaXRvcl9pZCI6IjQ5NDcxNTI0NjgxNDM5Nzc3MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 278d007eb76413ba05e64501c6704238f9b483641f37f3356457d37f74a2464b |
| hovercard-subject-tag | issue:2441924480 |
| 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/python/cpython/122548/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e8643e21279f312b308ad74a0c897ef8395db874016213357572e839c6d9b454/python/cpython/issues/122548 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8643e21279f312b308ad74a0c897ef8395db874016213357572e839c6d9b454/python/cpython/issues/122548 |
| og:image:alt | Feature or enhancement Proposal: Proposal: Add BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring Deprecate the old BRANCH event (as it will be redundant) Monitoring BRANCH events implicitl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markshannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width