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.

Quarkus doesn’t send X-Ray traces to AWS for sub-segments in Native build while using RESTEasy “controller” based approach

See original GitHub issue

Describe the bug

I an using “Controller” based approach using RESTEasy. I have added Quarkus AWS Xray dependency in my POM.xml…

And then we are instrumenting calls to AWS Services using below dependency: <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-xray-recorder-sdk-aws-sdk-v2-instrumentor</artifactId> <version>2.10.0</version> </dependency>

Also, we create manual sub-segment for external API calls…

However, Quarkus send sub-segment traces to XRay in the JVM build… But in Native build, it does not send any sub-segments… also, there is no error thrown. In cloudwatch logs, it says "TRACE_ID missing.

It works for native build in AWS Lambda “Handler” based approach but not in “Controller” based approach in RESTEasy. Attaching the screenshots of JVM and Native Build below:

Expected behavior

It should create and show sub-segments in the graph also.

Actual behavior

It does not show the sub-segments in Native build.

How to Reproduce?

https://github.com/amitkumar7566/xray-native-image-test

Output of uname -a or ver

No response

Output of java -version

java 11

GraalVM version (if different from Java)

21.3-java11

Quarkus version or git rev

2.6.1.Final

Build tool (ie. output of mvnw --version or gradlew --version)

maven

Additional information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:55 (36 by maintainers)

github_iconTop GitHub Comments

1reaction
patriot1burkecommented, Jan 20, 2022

I’ll revert it for now.

0reactions
geoandcommented, Feb 9, 2022

Yes, the fix is available since 2.7.0.Final

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quarkus doesn't send X-Ray traces to AWS for ... - GitHub
Quarkus doesn't send X-Ray traces to AWS for sub-segments in Native build while using RESTEasy “controller” based approach #25302.
Read more >
Aws Xray With Quarkus - ADocLib
I an using Controller based approach using RESTEasy.I have added Quarkus AWS Xray dependency in my POM.xml. How to use cloud native Java...
Read more >
quarkus - bytemeta
Quarkus doesn't send X-Ray traces to AWS for sub-segments in Native build while using RESTEasy “controller” based approach.
Read more >
[FIXED] X-Ray trace doesn't shows inner method call
I'm new to aws x-ray and trying to use x-ray with AOP based approach in a ... XRayEnabled) && (bean(*Controller) || bean(*Service) ...
Read more >
Build analyzer - Exercism/Fsharp - IssueHint
Quarkus doesn't send X-Ray traces to AWS for sub-segments in Native build while using RESTEasy “controller” based approach, 55, 2022-01-03, 2022-08-16.
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