Skip to content

[Feature]: durable execution event hooks #370

@zhongkechen

Description

@zhongkechen

What would you like?

  • onOperationStart, onOperationEnd fire at most once per operation.
  • onInvocationStart, onInvocationEnd fire at most once per invocation
  • onUserFunctionStart, onUserFunctionEnd fire when a user function is invoked

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

Key Differences

There is a key difference in this implementation from JavaScript implementation

  • Python calls onUserFunctionStart before a user function is called , while JS calls it when the user function is completed
  • Python calls onOperationStart when an operation is started, while JS calls it when the operation is completed

Possible Implementation

Similar 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 fields configured for Epic.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions