Re: [hibernate-dev] Hibernate Metrics support

2015-06-03 Thread Steve Ebersole
Please keep these discussions on list. Thanks :) We do not always know when JTA transactions have started if we are not the ones starting them. transactionStart() isn't going to happen. I am ok with discussing start() as an option. On Wed, Jun 3, 2015, 2:32 AM Mihalcea Vlad wrote: > I tried

Re: [hibernate-dev] Hibernate Metrics support

2015-06-02 Thread Steve Ebersole
start() I assume is supposed to indicate Session start? That is a possibility. transactionStart() is not. We do not always know when a transaction starts. On Tue, Jun 2, 2015 at 1:23 AM Mihalcea Vlad wrote: > Thanks. The second one is on the master branch and the 5.0 code-base. > Can the Sess

Re: [hibernate-dev] Hibernate Metrics support

2015-06-01 Thread Steve Ebersole
Hibernate already has hooks to implement all of these between org.hibernate.SessionEventListener and org.hibernate.resource.jdbc.spi.StatementInspector On Mon, Jun 1, 2015 at 4:12 PM Mihalcea Vlad wrote: > Hi Steve, > > I was thinking of having a Metrics gathering API for all sorts of > databas

[hibernate-dev] Hibernate Metrics support

2015-06-01 Thread Mihalcea Vlad
Hi Steve, I was thinking of having a Metrics gathering API for all sorts of database-related operations: - connection acquiring/lease time- connection wait time- transaction durations- SQL query logger - slow queries threshold- number of queries per transaction threshold Something similar to htt