Newreli c + sqlalchemy - PullRequest
       93

Newreli c + sqlalchemy

0 голосов
/ 04 августа 2020

Как включить отслеживание postgres запросов через sqlalchemy в newreli c monitoring?

У меня есть приложение с sqlalchemy ORM и добавляю к нему newreli c, но newreli c don ' t catch sql запросы через ORM.

1 Ответ

0 голосов
/ 05 августа 2020

В моем случае весь запуск работает с 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
...