Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Feature]: Add context.logger for structured logging with execution metadata #4

@maschnetwork

Description

@maschnetwork

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions