Skip to content

Conversation

@cgillum
Copy link
Member

@cgillum cgillum commented Jan 25, 2026

Summary

This PR adds support for propagating the Azure Functions invocation ID to the Durable Functions host via HTTP headers, enabling correlation between worker-side function invocations and host-side orchestration events.

Changes

  • Modified http_utils.py to accept an optional function_invocation_id parameter and include it as the X-Azure-Functions-InvocationId header
  • Updated DurableOrchestrationClient constructor to accept and store function_invocation_id
  • Updated all HTTP-calling methods to pass the invocation ID to http_utils
  • Added optional function_invocation_id parameter to DurableApp.client decorator (allows explicit override)
  • Added unit tests for header propagation

Related

Propagates the Azure Functions invocation ID to the Durable Functions host
via the X-Azure-Functions-InvocationId HTTP header, enabling correlation
between worker-side function invocations and host-side orchestration events.

- Modified http_utils.py to accept optional function_invocation_id parameter
- Updated DurableOrchestrationClient to pass invocation ID to HTTP calls
- Added optional function_invocation_id parameter to DurableApp.client decorator
- Added unit tests for header propagation

Related to Azure/azure-functions-durable-extension#3317
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.

3 participants