Skip to content

Feat state snapshot tracing#129

Open
sonleoracle wants to merge 4 commits intomainfrom
feat-state-snapshot-tracing
Open

Feat state snapshot tracing#129
sonleoracle wants to merge 4 commits intomainfrom
feat-state-snapshot-tracing

Conversation

@sonleoracle
Copy link
Member

@sonleoracle sonleoracle commented Mar 16, 2026

This PR includes three related tracing improvements:

  • Add a new StateSnapshotEmitted tracing event for runtimes to emit state snapshots for downstream consumers.
  • Fix traceback formatting in tracing exception events.
  • Update selected async tracing tests to use native async pytest style instead of asyncio.run().

The first change introduces the StateSnapshotEmitted event model needed for runtime state snapshot emission. The second fixes an existing issue in exception tracing so traceback content is formatted and asserted correctly. The third is a small test cleanup to make the async tracing tests more idiomatic and easier to maintain.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 16, 2026
@sonleoracle sonleoracle force-pushed the feat-state-snapshot-tracing branch 3 times, most recently from 3db80e9 to 60bae07 Compare March 16, 2026 15:56
@dhilloulinoracle
Copy link
Contributor

Internal regression succeeded 🍏: Build ID #373

@sonleoracle sonleoracle marked this pull request as ready for review March 18, 2026 15:56
@sonleoracle sonleoracle requested a review from a team March 18, 2026 15:56
@sonleoracle sonleoracle force-pushed the feat-state-snapshot-tracing branch 2 times, most recently from 563a2c5 to 05ceab0 Compare March 19, 2026 18:08
@dhilloulinoracle
Copy link
Contributor

Internal regression succeeded 🍏: Build ID #382

@sonleoracle sonleoracle force-pushed the feat-state-snapshot-tracing branch from 05ceab0 to 38c1662 Compare March 20, 2026 14:00
StateSnapshotEmitted(conversation_id="conversation-123", **kwargs)


def test_state_snapshot_emitted_accepts_realistic_wayflow_resumable_payload() -> None:
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I would not put anything runtime-specific in this folder, even if it's not really using the runtime. I think you can just avoid mentioning wayflow and use a generic runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants