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.

Better support of OpenTracing in Reactives Routes

See original GitHub issue

Describe the bug OpenTracing extension doesn’t work properly with Reactives Routes. It needs @Traced annotation to be set on the reactive routes to start a new span but parent span is not propagated from the request headers.

Expected behavior OpenTracing extension should work with Reactive Routes the same way it works with Jax-RS. Meaning, without any annotation, a span is created as a childof a potential parent span found in the request headers.

Actual behavior Requires to set @Traced to start a span, but it cannot be linked to the incoming parent span.

To Reproduce

You can use the sample project of this issue https://github.com/quarkusio/quarkus/issues/15182 and hit the reactive routes /route1 with a valid Uber-Trace-Id header.

The log will print a different traceId from the one given in the request header.

Environment (please complete the following information): Java version: 11 Quarkus version: 1.11.3-Final quarkus-smallrye-opentracing quarkus-vertx-web

Additional context The extension use SmallRye OpenTracing which in turns use https://github.com/opentracing-contrib/java-jaxrs. There is a vertx.web implentation that may be used. https://github.com/opentracing-contrib/java-vertx-web.

This may be related to https://github.com/quarkusio/quarkus/issues/15182. The vertx.web implementation of opentracing relies on RountingContext to propagate the active span. Thus, removing the need of Thread local storage. This may impact the way the @Traced annotation would work in this context.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Aug 3, 2021

Should we close this given that both OpenTracing and Reactive Routes have been superceded in Quarkus with alternatives we now put most of our energy into?

0reactions
radcortezcommented, Jun 20, 2022

Should we close this given that both OpenTracing and Reactive Routes have been superceded in Quarkus with alternatives we now put most of our energy into?

Yes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using OpenTracing - Quarkus
This guide explains how your Quarkus application can utilize OpenTracing to provide distributed tracing for interactive web applications. OpenTelemetry is the ...
Read more >
Is OpenTracing enabled for Reactive Routes in Quarkus?
My Quarkus app had OpenTracing enabled and it was working fine. After changing the HTTP resource layer I can not see any trace...
Read more >
OpenTracing - Apache Camel
Events (spans) are captured for incoming and outgoing messages being sent to/from Camel. See the OpenTracing website for a list of supported tracers....
Read more >
Vertx OpenTracing - Eclipse Vert.x
There is no direct support for coroutines, but it can be achieved with minimal instrumentation. There are several steps to achieve this. Use...
Read more >
OpenTracing Support - TechDocs - Broadcom Inc.
OpenTracing Support reports metrics and transaction traces from applications instrumented with OpenTracing-compliant tracers.
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