Skip to content

CHASM: Expose approximate execution state size#9797

Merged
yycptt merged 6 commits intotemporalio:mainfrom
yycptt:chasm-exeuction-approx-size
Apr 6, 2026
Merged

CHASM: Expose approximate execution state size#9797
yycptt merged 6 commits intotemporalio:mainfrom
yycptt:chasm-exeuction-approx-size

Conversation

@yycptt
Copy link
Copy Markdown
Member

@yycptt yycptt commented Apr 3, 2026

What changed?

  • Expose approximate execution state size from mutable state via chasmContext.ExecutionInfo().ApproximateStateSize
  • Renamed existing chasm.ExecutionInfo which is for visibility to chasm.ExecutionVisibilityInfo
  • Make existing chasmContext.StateTransitionCount() and ExecutionCloseTime() method part of the new ExecutionInfo() method.

Why?

  • Archetypes may want to expose approximate execution state size to end users.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@yycptt yycptt requested review from a team as code owners April 3, 2026 01:26
ScheduleToStartTimeout: a.GetScheduleToStartTimeout(),
StartToCloseTimeout: a.GetStartToCloseTimeout(),
StateTransitionCount: ctx.StateTransitionCount(),
StateTransitionCount: executionInfo.StateTransitionCount,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we'll need to add an ApproximateStateSize field to ActivityExecutionInfo after this PR is merged

@fretz12
Copy link
Copy Markdown
Contributor

fretz12 commented Apr 3, 2026

lgtm from the ACT side

Comment thread chasm/visibility_manager.go Outdated
Comment thread chasm/context.go Outdated
Comment thread chasm/context.go Outdated
@yycptt yycptt merged commit c9a39e6 into temporalio:main Apr 6, 2026
46 checks passed
@yycptt yycptt deleted the chasm-exeuction-approx-size branch April 6, 2026 03:50
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.

4 participants