generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
What would you like?
Add a logger property to DurableContext that provides structured logging with automatic inclusion of durable execution metadata (execution ARN, operation ID, step name, etc.).
The feature should include:
- context.getLogger() - Returns a logger with execution-level metadata
- Step-scoped logging that automatically includes step metadata when logging from within a step
- Integration with SLF4J for compatibility with existing logging frameworks
- Automatic inclusion of:
- durableExecutionArn
- operationId (when in a step)
- stepName (when in a step)
- threadId
Possible Implementation
TBD
Is this a breaking change?
No
Does this require an RFC?
No
Additional Context
Reference implementations:
- TypeScript SDK: context.logger.info(), stepCtx.logger.debug()
- Python SDK: context.logger, context.set_logger(), StepContext.logger
This feature improves observability and debugging of durable workflows by ensuring all log entries include relevant execution context.
Reactions are currently unavailable