We use codehale metrics to instrument our JDBC and have a special JDBC wrapper driver that looks to see if the SQL has a comment. This comment is used for the metric name.
For example we might have SQL that looks like: /* com.snaphop.data.campaign.SELECT */ select * from campaign where .... Now through our magical JDBC spy wrapper we get a metric named "com.snaphop.data.campaign.SELECT" with the execution time and various other metrics like how many times per second etc.. This has worked amazingly well for us since Hibernate will auto prefix SQL with comments as an option and our developers can also create their own metrics even using plain JDBC. The problem is that it seems the jOOQ DSL does not allow you to enter adhoc SQL comments. Any thoughts on how we can do this? -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
