Context propagation is not invoked when a workflow start and is configured using WorkflowClientOptions
See original GitHub issueExpected Behavior
When starting a workflow, context propagated configured at workflow client level must be used.
Actual Behavior
Is not invoked and must be defined using WorkflowOptions
Steps to Reproduce the Problem
In the following link, I created an example class in which we can see that the “serializeContext” method is not invoked before the workflow is started.
https://gist.github.com/jrpedrianes/2759391fa22311edf214932eeb3fd4b3
Specifications
- Version: sdk-java 1.3.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Context Propagation sample not working - Community Support
We use jwt for authentication which means that workflows and activities need to carry around jwt token of the function that triggers them....
Read more >OpenTracing context is not propagated in some cases #922
Child workflows as reported in comments in Open tracing span context not propagated when activity or child workflow invoked asynchronously #537
Read more >Tracing and context propagation - Cadence Workflow
ClientOptions and WorkerOptions allow configuring a context propagator. The context propagator extracts and passes on information present in the context.
Read more >internal - Go Packages
NewDisconnectedContext returns a new context that won't propagate parent's cancellation to the new child context. One common use case is to do ...
Read more >Spring Cloud Sleuth Features
Context Propagation. Traces connect from service to service using header propagation. The default format is B3. Similar to data formats, you can configure...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was debugging a workflow invocation and I could not see where the context propagation, defined using WorkflowClientOptions, could be used.
Seems that should be used in:
But I could not see any reference to
clientOptions.getContextPropagators()
Now, we are using an interceptor to add it to all the client stubs, so we only need to touch one class.
Thank a lot!!