Skip to content

Conversation

@chris-olszewski
Copy link
Member

@chris-olszewski chris-olszewski commented Oct 21, 2025

What was changed

Remove yield points from the @temporalio/interceptors-opentelemetry workflow interceptors. Some yield points were there since the initial version of the package and others were added in #1449 and #1577

Why?

These yield points have the ability to cause NDE due to the inclusion of these interceptors. In addition, it broke startWithSignal operations as signal handlers were not immediately processed upon registration if the workflow was started with the given signal.

Depends on temporalio/sdk-core#1040

Checklist

  1. Closes [Bug] Upgrading OTel Interceptor to 1.11.5+ breaks signal-with-start and may cause NDE #1677

  2. How was this tested:
    Created histories from the affected versions and added tests that replay these histories. These are red/green tests where they initially failed without the changes, but with the flagging logic they passed.

The only interceptors that are not covered by these replay tests are:

  • inbound execute
  • outbound scheduleLocalActivity
  • outbound continueAsNew

As I was unable to trigger NDE from removing/adding yield points to these interceptors.

  1. Any docs updates needed?
    Possibly a warning on https://docs.temporal.io/develop/typescript/interceptors#workflow-interceptors-registration about adding yield points to workflow interceptors.

@chris-olszewski chris-olszewski force-pushed the olszewski/fix_otel_interceptor_nde branch from 717716c to 1006b2b Compare October 21, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Upgrading OTel Interceptor to 1.11.5+ breaks signal-with-start and may cause NDE

1 participant