Server span is not getting closed when using embedded Tomcat v9 with SpringBoot v2.6.15 #10730
-
I see that the auto instrumentation code is not closing the Server span when application is deployed with Tomcat v9 with SpringBoot v2.6.15 The reason for this is the that the below condition evaluates to false when the Request processing ends:
On further debugging the issue seems to be the HttpServletRequest type. The instrumentation is expecting an instance of Due to this mis-match, the servletEntityProvider returns null @
Can you please advice how to over come this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
are you bundling both jakarta and javax servlet api inside your application? |
Beta Was this translation helpful? Give feedback.
I don't think it is common as both of these dependencies can not reasonably co-exist in the same application. If both of them are included then it very likely that it is because of a mistake.
I have create a PR that hopefully resolves this #10757