小编Ste*_*yan的帖子

APM node.js 代理 3.0.0 和 APM 服务器 7.4.0 之间不兼容

我遇到 APM 服务器和 APM 代理 (Elastic Stack) 的兼容性问题。

"elastic-apm-node": "^3.0.0"
Run Code Online (Sandbox Code Playgroud)

配置:

var apm = require('elastic-apm-node').start({
  serviceName: "******-dev",
  captureBody: 'all',
  stackTraceLimit: 10,
  transactionMaxSpans:10,
  serverUrl: "http://localhost:5601"
}).addErrorFilter(function (payload) {
  if(payload.context.response && payload.context.response.status_code === 429){
    return false;
  }
  return payload;
})
Run Code Online (Sandbox Code Playgroud)

APM服务器版本: 7.4.0

错误:

APM Server responded with "404 Not Found". This might be because you're running an incompatible version of the APM Server. This agent only supports APM Server v6.5 and above. If you're using an older version of the APM Server, …
Run Code Online (Sandbox Code Playgroud)

apm node.js elastic-stack

5
推荐指数
0
解决办法
675
查看次数

标签 统计

apm ×1

elastic-stack ×1

node.js ×1