Spring JPA exceptions are captured and not visible in the application logs #12125
Unanswered
michalwilk96
asked this question in
Q&A
Replies: 2 comments 9 replies
-
Hi @michalwilk96, We have observed the same issue. What happens is that Spring-data uses the hibernate-api in such a way that the span for that invocation is flagged as an |
Beta Was this translation helpful? Give feedback.
9 replies
-
There is a PR #12879 that fixed it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Recently I observed the following issue in my Java application with Spring Boot framework.
Opentelemetry agent is attached as a jar to the configuration.
If any spring data jpa repository interface is executed and it throws an exception (Runtime), then it's automatically captured and visible on Kibana APM error (with the source of opentelemetry java agent). What's interesting - the log error is not visible in the application logs, even if the method that throws the error is in the try-catch block.
Example exception: jakarta.persistence.NoResultException.
Have you ever observed such an "issue"?
Beta Was this translation helpful? Give feedback.
All reactions