Open dsvensson opened 4 years ago
Looking at the tests, hibernate should be generating spans with the following operation names:
depending on what you are doing. Are you seeing database spans from postgress? In the logs, do you see the spans being created? What frameworks are you using?
It may be easier to go through support@datadoghq.com . They can look at your exact traces as well as having better mechanisms for sharing logs and personal information
Yes. Database spans from Postgres works fine, but I was hoping the Hibernate support would somehow group them together or indicate involved JPAs, but perhaps that's not how it should work? Using Hibernate 5.4.11. There are no mentions of hibernate under "Tags" in the web interface.
As for logs, my logs do contain span_id which I use to get data presented under APM in the web interface.
I think your best bet is to go through support. It's difficult to diagnose issues like this without seeing your exact traces
That's the thing. There are no traces of hibernate to look at :) but sure, I'll give that a try.
@randomanderson: What there a resolution for this? I'm also not seeing Hibernate spans and don't want to contact support if there is an easy solution.
@theigl No. It's not something that can be diagnosed easily from a github issue.
What version of hibernate are you running? What application or server framework? What version of the tracer? Are you seeing database spans? Are you using JPA or another layer like Spring Repository? Do you have a minimal application that you can share?
@randomanderson:
What version of hibernate are you running? What application or server framework? What version of the tracer?
Are you seeing database spans?
Yes. JDBC MySQL spans work as expected.
Are you using JPA or another layer like Spring Repository?
JPA via Spring's LocalContainerEntityManagerFactoryBean
. DAOs use @Repository
.
Do you have a minimal application that you can share?
Not at hand. I can try to extract something from my application but I'm not sure when I will be able to do that.
@randomanderson any finding on this one? I also have same issue. I can see the hibernate generated SQL but no other traces!!
When enabling debug logging I can see output like this:
...so it seems to be doing something. But in the DataDog web interface I don't see any hibernate spans anywhere. Maybe my expectations of the hibernate integration are not aligned with reality, but as it's only mentioned as supported, without any example of how to set it up I can only imagine what it's supposed to do, which is, adding a span, maybe with some JPA name, with lots of postgres queries under it.