You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fb10d8b
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: improve worker logging with structured formats and consistent messaging (#532)
# Improved Worker Logging with Structured Context
This PR enhances the logging system for edge workers by implementing structured, context-aware logging throughout the worker lifecycle. The changes:
- Replace generic log messages with context-specific logging methods
- Add structured logging for task execution with detailed context (flow slug, step slug, message ID, run ID, retry information)
- Implement a startup banner with worker identity and flow compilation status
- Add consistent shutdown/deprecation logging to prevent duplicate messages
- Track compilation status during worker startup and include it in logs
- Pass worker identity information to task executors for better log context
- Improve task execution logging with standardized start/complete/fail messages
These changes make logs more consistent and informative, making it easier to track worker and task execution through the system.
0 commit comments