Skip to content
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

Remove hibernate session spans #4538

Merged
merged 1 commit into from
Oct 29, 2021
Merged

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Oct 28, 2021

Resolves #3552
Hibernate instrumentation placed all hibernate operations under a session span that spanned the whole hibernate session, which isn't consistent with rest of the instrumentations. This pr refactors hibernate instrumentation to behave like other instrumentations.

}
}
sessionId1 != sessionId2 != sessionId3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines -70 to -74
add("version6TestImplementation", "org.hibernate:hibernate-core:6.0.0.Alpha6")
add("version6TestImplementation", "org.hibernate:hibernate-entitymanager:6.0.0.Alpha6")
add("version6TestImplementation", "org.springframework.data:spring-data-jpa:2.3.0.RELEASE")

// hibernate 6 is alpha so use 5 as latest version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is reason to delete this just to avoid maintenance prior to 6 being GA? (that works for me, just checking reason)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instrumentation actually failed muzzle for hibernate 6 so the only spring test we had didn't really test the instrumentation. The latest version for hibernate 6.0.0.Beta1 has changed to jakarta.perisistence api which would probably break the spring test too so I didn't see much point in keeping it.

@trask trask merged commit 0f01bbb into open-telemetry:main Oct 29, 2021
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
@laurit laurit deleted the hibernate-session branch July 6, 2023 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revisit Hibernate Session span modeling
2 participants