question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Context propagation is not invoked when a workflow start and is configured using WorkflowClientOptions

See original GitHub issue

Expected 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jrpedrianescommented, Oct 5, 2021

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()

0reactions
jrpedrianescommented, Oct 5, 2021

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!!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found