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

See original GitHub issue

Hi folks,

@Asynchronous annotation and maybe others execute the method on a different thread which breaks context propagated via thread locals. If these methods use mp-rest-client it breaks tracing or e.g. MDC.

On the spec level there could be a way to reliably propagate context between threads. It could be done by providing custom executor service or maybe via https://github.com/eclipse/microprofile-concurrency

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:23 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
Ladicekcommented, Jun 10, 2020

I think we want to stay consistent with ConProp as much as possible, including when it comes to ALL_REMAINING.

0reactions
Emily-Jiangcommented, Jul 7, 2020

Support integration with context propagation Advantages: +: Tcks - runtime can verify against the tck +: end users knows some runtime might support context propagation +: any methods with @Asynchronous will get some context propagated, defined by Context Propagation. +: It will specify what will happen when both Jakarta EE and Context Propagation are present. Proposed: Context Propagation should win.

The integration is optional. Not portable.

Disadvantages: 1: end users don’t know what contexts are propagated. It varies between runtimes. - User can configure context propagation explicitly via context propagation properties for portability 2: end users don’t which runtimes support this. - Maybe we reword to say the integration is required if both FT and CP are present. TBC 3: More Spec and TCKs to maintain if the end users can’t benefit from this feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Context Propagation in Distributed Tracing? - SigNoz
Context propagation correlates events in a specific user request or transaction with the help of global identifiers and some other metadata.
Read more >
Embracing context propagation - Medium
Distributed context propagation is a generic mechanism that can be used for purposes completely unrelated to end-to-end tracing.
Read more >
Context propagation | Ambassador Telepresence
Context propagation is the transfer of request metadata across the services and remote processes of a distributed system. Telepresence uses context ...
Read more >
Context propagation in distributed tracing: Beyond "Hello ...
Context propagation is a mechanism by which a context object (request metadata) passes in a transaction between and across components in ...
Read more >
An Introduction To Context Propagation In JavaScript
This article brings a brief intro to context propagation in JavaScript and shows that there's no magic at all behind some of the...
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