-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
@Traced annotation doesn't work as documented in opentracing.adoc when combined with JAX-RS #15876
Comments
/cc @Ladicek, @geoand, @kenfinnigan |
What classes or methods did you annotate |
One thing that should be obvious but I found that it sometimes isn't: even if you made |
The actual base lab code leaves very little scope for using the annotation. But I took the documentation in its simplistic face value and did what it suggested and followed its example, it doesn't mention any limitations or requirements about CDI, but I suspected that might be the problem. Maybe a more complete worked example would be useful here showing the use of @Traced in a proper context which highlights the CDI constraints. One of the problems with "magic" annotations is the full cost or complexity is very much hidden until it doesn't work and as far as I could find no diagnostic help. |
I hear you, but I have to say that |
I think the documentation is the piece that is misleading here so please fix that. A more complete worked example here combining the JAX-RS built-in tracing with some annotated elements would also be great |
I'm trying to combine use of JAX-RS and @Traced annotation in a single app and finding it hard to get any Jaeger output from the annotated calls but it works fine for the REST calls so my basic configuration of Jaeger seems fine.
Expected behavior
I would expect to see tracing generated from the non-REST annotated methods as described in the docs
Actual behavior
Only JAX-RS generated REST calls output seen through Jaeger
To Reproduce
Here is my variant test app which is derived from a Red Hat Quarkus Lab, this includes the incremental lab steps.
https://github.com/alexgroom/quarkus-workshop-m1m2-labs
Full instructions on how to use this code along with Postgres config and mvn build is all well documented here:
http://quarkus-m2-labs-infra.6923.rh-us-east-1.openshiftapps.com/workshop/quarkus-lab/lab/tracing
I was actually trying to do the extra credit lab exercise at the end of this chapter and the lab guide author cannot provide a working solution to this.
Configuration
mvn clean package -DskipTests -f $CHE_PROJECTS_ROOT/quarkus-workshop-m1m2-labs &&
oc label dc/people app.kubernetes.io/part-of=people --overwrite &&
oc annotate dc/people app.openshift.io/connects-to=postgres-database --overwrite
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
OpenShift 4.6.4
JDK 11.0.8
CodeReadyWorkspaces (Che 7.24.2)
GraalVM version (if different from Java)
No Graalvm involved
Jaeger output
Test Script
curl http://people-user1-project./person/swpeople
Alex Groom
Specialist Solution Architect
[email protected]
The text was updated successfully, but these errors were encountered: