Skip to content

Add attempt number to structured activity logger #1020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

evansandoval
Copy link
Contributor

What changed?
Added attempt number logging to activity execution. This includes:

  • Added a new ATTEMPT constant to LoggerTag.java
  • Enhanced ActivityWorker.java to include the attempt number in the MDC during activity execution.

Why?
To improve observability and debugging capabilities for activity executions by including the Attempt number

How did you test it?
Tested locally against the java-samples and verified that attempt numbers showed up.
image
Will also rely on GitHub Actions builds

Potential risks
Very low risk change, only adds additional logging context, doesn't modify core business logic

Release notes
Minor enhancement: Activity execution logs now include attempt number for better retry debugging and observability.

Documentation Changes
No configuration or setup documentation changes required. This is an internal logging enhancement that improves observability without requiring user configuration changes.

@natemort natemort merged commit 468dee0 into cadence-workflow:master Aug 13, 2025
5 checks passed
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