Skip to content

fix(temporal): include activity retry attempts in metadata - #1056

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/sdk-783-include-temporal-activity-retry-attempt-numbers-in-metadata
Nov 3, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/sdk-783-include-temporal-activity-retry-attempt-numbers-in-metadata

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

🤖 This text was AI-generated.

Activity retries produce separate spans, but their metadata does not show which attempt each span represents. Include Temporal's activity attempt number on every activity span, including local activities:

before: activity span metadata has no attempt number
after:  temporal.activity_attempt = 1, then 2 on retry

Extend the existing workflow tests to check attempt numbers. Combine the basic child-workflow checks into the delegation test and remove the unused parent workflow fixture.

Fixes: https://linear.app/braintrustdata/issue/SDK-783

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T17:23:52.738539Z 91e7d1c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Base automatically changed from abhi/temporal-subagent-spans-2610819b to main November 3, 2026 17:20
> 🤖 **This text was AI-generated.**

Activity retries produce separate spans, but their metadata does not show
which attempt each span represents. Include Temporal's activity attempt
number on every activity span, including local activities:

```text
before: activity span metadata has no attempt number
after:  temporal.activity_attempt = 1, then 2 on retry
```

Extend the existing workflow tests to check attempt numbers. Combine the
basic child-workflow checks into the delegation test and remove the unused
parent workflow fixture.

Fixes: https://linear.app/braintrustdata/issue/SDK-783
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) force-pushed the abhi/sdk-783-include-temporal-activity-retry-attempt-numbers-in-metadata branch from 6a19ade to 91e7d1c Compare November 3, 2026 17:21
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 0ca0772 into main Nov 3, 2026
98 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi/sdk-783-include-temporal-activity-retry-attempt-numbers-in-metadata branch November 3, 2026 18:18
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.

2 participants