Skip to content

[Feature]: Durable Execution Event Hooks #364

@zhongkechen

Description

@zhongkechen

What would you like?

I would like to create a plugin which receive events from Durable Execution SDK when an event occurs, such as execution starts, operation starts, etc.

  • onOperationStart, onOperationEnd, onOperationAttemptStart, onOperationAttemptEnd fire at most once per operation/attempt.
    • onOperationAttemptStart and onOperationAttemptEnd will manage a span that is a child of the span managed by onOperationStart and onOperationEnd. That is retry attempts for steps and wait-for-condition operations.
  • onExecutionStart, onExecutionEnd fire at most once per execution
  • onInvocationStart, onInvocationEnd fire at most once per invocation

proposed design: https://github.com/aws/aws-durable-execution-sdk-js/blob/otel-instrumentation-design-v2/packages/aws-durable-execution-sdk-js/src/documents/JAVA_SDK_OTEL_PLUGIN.md

Possible Implementation

Related work in TypeScript SDK for reference:

Is this a breaking change?

No

Does this require an RFC?

Yes

Additional Context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status

Backlog

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions