You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
By default, Spring enables spring.jpa.open-in-view which creates a Hibernate session for every request. When this property is enabled, we're seeing SELECT statements being attached to the Hibernate session span instead of the Spring WebMVC span.
What did you expect to see?
The spans in the following order:
Session
OurSpringRestController.ourMethod
...
OurSpringDataRepository.findAllByLocale
SELECT some model
SELECT some table
OurSpringDataRepository.findAll
SELECT some model
SELECT some table
What did you see instead?
The spans in the following order:
Session
SELECT some model
SELECT some table
SELECT some model
SELECT some table
OurSpringRestController.ourMethod
...
OurSpringDataRepository.findAllByLocale
OurSpringDataRepository.findAll
What version are you using?
v1.7.2
Environment
Compiler: AdoptOpenJDK 11.0.10-hotspot
OS: Docker - marketplace.gcr.io/google/centos7:latest
Runtime (if different from JDK above): AdoptOpenJDK 11.0.10-hotspot
OS (if different from OS compiled on): Docker - marketplace.gcr.io/google/centos7:latest
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
By default, Spring enables
spring.jpa.open-in-view
which creates a Hibernate session for every request. When this property is enabled, we're seeing SELECT statements being attached to the Hibernate session span instead of the Spring WebMVC span.What did you expect to see?
The spans in the following order:
...
What did you see instead?
The spans in the following order:
...
What version are you using?
v1.7.2
Environment
Compiler: AdoptOpenJDK 11.0.10-hotspot
OS: Docker - marketplace.gcr.io/google/centos7:latest
Runtime (if different from JDK above): AdoptOpenJDK 11.0.10-hotspot
OS (if different from OS compiled on): Docker - marketplace.gcr.io/google/centos7:latest
Additional context
The text was updated successfully, but these errors were encountered: