-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context propagation for undertow async dispatch #4950
Conversation
@Advice.OnMethodEnter(suppress = Throwable.class) | ||
public static PropagatedContext enterJobSubmit( | ||
@Advice.Argument(value = 1, readOnly = false) Runnable task) { | ||
Context context = Java8BytecodeBridge.currentContext(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively could wrap the Runnable
and handle restoring context there
import static io.opentelemetry.instrumentation.test.base.HttpServerTest.ServerEndpoint.REDIRECT | ||
import static io.opentelemetry.instrumentation.test.base.HttpServerTest.ServerEndpoint.SUCCESS | ||
|
||
class UndertowServerDispatchTest extends HttpServerTest<Undertow> implements AgentTestTrait { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hi @mateuszrzeszutek @trask, |
hey @lokeshcse6! the current plan is for OpenTelemetry Java SDK 1.10.0 release at the end of this week and OpenTelemetry Java Instrumentation 1.10.0 at the end of next week. |
Hi @trask |
@lokeshcse6 are you looking for snapshot builds? |
@trask Yes that is correct tested with snapshot jar fix is working fine. Thanks for help!!! |
Resolves #4897