Title: Propagate Azure Functions invocation IDs in Durable client gRPC metadata · Issue #309 · microsoft/durabletask-java · GitHub
Open Graph Title: Propagate Azure Functions invocation IDs in Durable client gRPC metadata · Issue #309 · microsoft/durabletask-java
X Title: Propagate Azure Functions invocation IDs in Durable client gRPC metadata · Issue #309 · microsoft/durabletask-java
Description: Java SDK for Durable Functions and the Durable Task Framework - Propagate Azure Functions invocation IDs in Durable client gRPC metadata · Issue #309 · microsoft/durabletask-java
Open Graph Description: Java SDK for Durable Functions and the Durable Task Framework - Propagate Azure Functions invocation IDs in Durable client gRPC metadata · Issue #309 · microsoft/durabletask-java
X Description: Java SDK for Durable Functions and the Durable Task Framework - Propagate Azure Functions invocation IDs in Durable client gRPC metadata · Issue #309 · microsoft/durabletask-java
Opengraph URL: https://github.com/microsoft/durabletask-java
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Propagate Azure Functions invocation IDs in Durable client gRPC metadata","articleBody":"## Summary\n\nThe Java Azure Functions Durable client binding does not propagate the originating function invocation ID in gRPC metadata. The host therefore cannot correlate supported client-operation logs with the calling function invocation, leaving the Java portion of [Azure/azure-functions-durable-extension#3327](https://github.com/Azure/azure-functions-durable-extension/issues/3327) blocked.\n\nThis is a source-inspection report. It concerns the Azure Functions integration, not standalone Java applications or new orchestration features.\n\n## Current behavior and source evidence\n\nVerified on `main` at `dcd243b2822f5b35e0a28d23193fdf259431871d`:\n\n- [`DurableClientContext`](https://github.com/microsoft/durabletask-java/blob/dcd243b2822f5b35e0a28d23193fdf259431871d/azurefunctions/src/main/java/com/microsoft/durabletask/azurefunctions/DurableClientContext.java#L33-L71) has no invocation-ID field or invocation-context parameter in `getClient()` and obtains its client through `DurableTaskGrpcClientFactory.getClient(rpcURL.getPort(), null)`.\n- [The gRPC client factory](https://github.com/microsoft/durabletask-java/blob/dcd243b2822f5b35e0a28d23193fdf259431871d/client/src/main/java/com/microsoft/durabletask/DurableTaskGrpcClientFactory.java#L9-L18) caches clients by port, so any solution must not retain one invocation's ID on a shared client for later invocations.\n- [The host gRPC contract](https://github.com/Azure/azure-functions-durable-extension/blob/f697577155be3e529721b9c286de7a96e6f0e513/src/WebJobs.Extensions.DurableTask/TaskHubGrpcServer.cs#L30-L32) expects the metadata key `x-azure-functions-invocationid`.\n\n## Reproduction and expected behavior\n\nUse the Azure Functions Durable client binding from a function with a known invocation ID and capture the outgoing gRPC metadata for a supported client operation. Provide a backward-compatible path from the originating Functions execution context to each call so that the metadata value equals the function invocation ID. A trace ID, span ID, or orchestration instance ID is not a substitute.\n\n## Acceptance Criteria\n\n- [ ] Azure Functions callers have a backward-compatible way to associate their current invocation ID with supported Durable client calls.\n- [ ] The invocation ID is included as `x-azure-functions-invocationid` on supported host-logged client operations.\n- [ ] Regression tests verify outgoing gRPC metadata for distinct invocations, including concurrent calls and clients obtained through the port-cached factory, without stale or cross-invocation ID leakage.\n- [ ] Missing invocation context preserves existing behavior; standalone Java clients do not fabricate Functions invocation IDs.\n- [ ] Existing gRPC metadata, tracing behavior, and client APIs remain compatible. This work does not require adding rewind or other currently unsupported Java features.\n- [ ] Record the published Azure Functions Java integration artifact/version containing the fix so the extension E2E dependency and Java assertions can be updated.\n\n## Related\n\n- Parent tracking: [Azure/azure-functions-durable-extension#3327](https://github.com/Azure/azure-functions-durable-extension/issues/3327).\n- [Current extension E2E language gate](https://github.com/Azure/azure-functions-durable-extension/blob/f697577155be3e529721b9c286de7a96e6f0e513/test/e2e/Tests/Helpers/ClientOperationLogHelpers.cs#L39-L48).\n\nThis is distinct from entity OpenTelemetry trace-context propagation: it supplies the Functions invocation GUID needed by the host's `ClientOperationReceived` logs. Mandatory extension E2E assertions follow after release.","author":{"url":"https://github.com/YunchuWang","@type":"Person","name":"YunchuWang"},"datePublished":"2026-10-30T18:49:31Z","url":"https://github.com/microsoft/durabletask-java/issues/309"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:1e5dbc60-03b4-ec15-7b5d-cbc869fdafe9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA8E:F0AE:9D842:D142C:6AFE31C6 |
| html-safe-nonce | cd02553e50ba9a886364bfdf56b6aad4e8b16e4a66ea72cdd3bd72c8be35a3fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQThFOkYwQUU6OUQ4NDI6RDE0MkM6NkFGRTMxQzYiLCJ2aXNpdG9yX2lkIjoiMjk4NjY4OTQ5MDI4NzczNTIzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc5b4161ca0f123bcf3aecaa7c9067dd20d6eed4f32d71ff71e0cba6be6986ec |
| hovercard-subject-tag | repository:452823832 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/microsoft/durabletask-java/issues/309 |
| twitter:image | https://opengraph.githubassets.com/67769f7916c8adca31cc61d7a8831c53baeda79752b258480250647c8d10f24b/microsoft/durabletask-java |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67769f7916c8adca31cc61d7a8831c53baeda79752b258480250647c8d10f24b/microsoft/durabletask-java |
| og:image:alt | Java SDK for Durable Functions and the Durable Task Framework - Propagate Azure Functions invocation IDs in Durable client gRPC metadata · Issue #309 · microsoft/durabletask-java |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2 |
| turbo-cache-control | no-cache |
| go-import | github.com/microsoft/durabletask-java git https://github.com/microsoft/durabletask-java.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 452823832 |
| octolytics-dimension-repository_nwo | microsoft/durabletask-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 452823832 |
| octolytics-dimension-repository_network_root_nwo | microsoft/durabletask-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ccb88d9c92abe69245b429398c8a57ae87070c7c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width