You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before we used to only handle `PY_START`, `PY_RETURN` and `LINE` events.
This lead to an unbalanced call stack in the trace, because we didn't
handle exceptions, generators and coroutines properly. We do now. Here's
the CHANGELOG entry:
- Balanced call-stack handling for generators, coroutines, and unwinding
frames by subscribing to `PY_YIELD`, `PY_UNWIND`, `PY_RESUME`, and
`PY_THROW`, mapping resume/throw events to `TraceWriter::register_call`,
yield/unwind to `register_return`, and capturing `PY_THROW` arguments as
`exception` using the existing value encoder. Added Python + Rust
integration tests that drive `.send()`/`.throw()` on coroutines and
generators to guarantee the trace stays balanced and that exception
payloads are recorded.
Copy file name to clipboardExpand all lines: codetracer-python-recorder/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ All notable changes to `codetracer-python-recorder` will be documented in this f
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
7
## [Unreleased]
8
+
### Added
9
+
- Balanced call-stack handling for generators, coroutines, and unwinding frames by subscribing to `PY_YIELD`, `PY_UNWIND`, `PY_RESUME`, and `PY_THROW`, mapping resume/throw events to `TraceWriter::register_call`, yield/unwind to `register_return`, and capturing `PY_THROW` arguments as `exception` using the existing value encoder. Added Python + Rust integration tests that drive `.send()`/`.throw()` on coroutines and generators to guarantee the trace stays balanced and that exception payloads are recorded.
0 commit comments