Closed devleifr closed 3 months ago
Hi @devleifr,
So far I've been unable to reproduce this issue. My slow SQL queries are showing up in the expected UI page. Can you share a little more information about your setup?
Hi @devleifr,
So far I've been unable to reproduce this issue. My slow SQL queries are showing up in the expected UI page. Can you share a little more information about your setup?
Hi @jbedell-newrelic! Have you tried the reproduction spring application that I provided in "Steps to reproduce"?
@devleifr I'm sorry to say I somehow completely missed that. Thanks for the reminder.
Hi @devleifr It looks like your repro app does a simple select pg_sleep()
call. We refer to this as a select VARIABLE call, and that type of call is never going to report a metric up.
Is that representative of the problem query in your actual application?
If so and would like it to show up, you may try to append an arbitrary from <table_name>
to the query, which should parse differently and should produce a metric being sent up.
Going to be closing this issue. If you need to re-open it, please feel free.
Description
I'm experiencing an issue with the New Relic Java agent where Slow SQL traces are not shown in the New Relic dashboard. I can see these SQL-connected traces under Monitor > Transactions and they are categorized under the
.other
segment.Additionally, I did not find any enable/disable option for Slow SQL traces like those available in other language agents.
Expected Behavior
Slow SQL traces should appear in the New Relic dashboard under the Monitor > Databases > Slow SQL traces section.
Troubleshooting
The Slow SQL traces section is empty:
SQL-connected traces under Monitor > Transactions:
Steps to Reproduce
Specify your license key under the
NEW_RELIC_LICENSE_KEY
variable indocker-compose.yml
. Then rundocker compose up --build
.java_nr_sql_repro.zip
Environment Details: