我有一个启用了 apm 的应用程序,对 apm sdk 的唯一引用位于 package.json 依赖项和 app.js 中。我有以下行:
const apm = require('elastic-apm-node').start()
常量“apm”没有在任何地方使用。
我想删除 apm,因为在我的本地环境中我收到以下消息:
APM Server transport error (503): Unexpected APM Server response
queue is full
最佳答案
您可以将环境变量ELASTIC_APM_ACTIVE
设置为false
。
引用https://www.elastic.co/guide/en/apm/agent/nodejs/master/configuration.html#active .
关于javascript - 如何在 DEV 环境中禁用 afm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57098582/