-
Notifications
You must be signed in to change notification settings - Fork 324
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
Missing transaction name randomly on Jersey API endpoints #581
Comments
This is indeed strange and not the expected behaviour. In addition, any information about your Resource typing structures can be useful, for example: inheritance- are some Resources extending a base resource? Or some resources implement a common interface annotated with JAX-RS stuff? etc. |
Thanks for your quick response. EDIT: This is the log. This time I called 3 times to the same endpoint, the two first calls were displayed as ServletContainer.doGet, the third one was correctly named. |
Judging from your logs it seems like it's only setting the correct name in case the transaction is sampled. Could you try out to set |
Oh, I have found the bug. It does have to do with sampling. |
Thank you for investigate this!! |
You can register to get release notifications on our repo. |
Thank you @eyalkoren |
I'm trying to integrate Elastic APM in our Spring Boot with Jersey API which basically is configured as below:
JerseyConfigurarion.java
ProfileResource.java
When I run the app with the java agent, monitoring starts to work but only some times the name displayed for transactions is the correct one, i.e. "ProfileResource#getProfile" most of the times is displayed as "ServletContainer#doGet". Exactly the same is happening for PUT, POST, ... so there is no way to know the real statistic of endpoints because most of the calls to all the different GET are bundled in ServletContainer#doGet
I tried with version 1.4.0 and 1.5.0 with same result. I also tried several configurations by setting "application_packages", "trace_methods", "enable_jaxrs_annotation_inheritance", "allow_path_on_hierarchy", "disable_instrumentations=incubating,servlet-api" but none of them solved my problem.
I'm wondering if this is a kind of bug in the agent as it is really weird that the correct name is captured only from time to time.
I would really appreciate your help with this.
The text was updated successfully, but these errors were encountered: