В моем случае весь запуск работает с transaction_tracer.record_sql = raw
в newrelic.ini
, к сожалению, были проблемы с obfuscated
# When the transaction tracer is on, SQL statements can
# optionally be recorded. The recorder has three modes, "off"
# which sends no SQL, "raw" which sends the SQL statement in its
# original form, and "obfuscated", which strips out numeric and
# string literals.
transaction_tracer.record_sql = raw