首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Newrelic + sqlalchemy

Newrelic + sqlalchemy
EN

Stack Overflow用户
提问于 2020-08-05 03:46:06
回答 1查看 85关注 0票数 0

如何在newrelic监控中通过sqlalchemy打开postgres查询的跟踪?

我有一个带有sqlalchemy ORM的应用程序,并向其中添加了newrelic,但newrelic不能通过ORM捕获sql查询。

EN

回答 1

Stack Overflow用户

发布于 2020-08-05 17:46:48

在我的例子中,all start可以在newrelic.ini中使用transaction_tracer.record_sql = raw,但不幸的是,obfuscated出现了问题

代码语言:javascript
复制
# 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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63254095

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档