Skip to content

Conversation

@andystaples
Copy link
Contributor

Resolves #47

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances logging visibility by adding orchestration names to log messages and promoting key activity/entity execution logs from debug to info level.

  • Extracts and includes orchestration names in orchestration-related log messages
  • Promotes activity and entity execution log messages from debug to info level for better visibility
  • Adds a new log message at the beginning of orchestration replay

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment on lines +1236 to +1239
orchestration_name = "<unknown>"
orchestration_started_events = [e for e in old_events if e.HasField("executionStarted")]
if len(orchestration_started_events) >= 1:
orchestration_name = orchestration_started_events[0].executionStarted.name
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is QoL, not sure if it is worth the time to include, given it involves another iteration over old_events.
In durabletask-dotnet, they use this logic
https://github.com/Azure/durabletask/blob/8576bc5777119c673857b87c1e85992a1111d437/src/DurableTask.Core/OrchestrationRuntimeState.cs#L148

- Set level to debug for execution logs
- Allow logging config in durabletask-python
- Update docs for logging
@berndverst berndverst merged commit 0e95aa8 into main Nov 11, 2025
18 checks passed
@berndverst berndverst deleted the andystaples/add-execution-logging branch November 11, 2025 00:12
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.

Add additional orchestration and activity execution logs

3 participants