несовместимость между агентом APM node.js 3.0.0 и сервером APM 7.4.0 - PullRequest
1 голос
/ 15 октября 2019

У меня проблема с совместимостью сервера APM и агента APM (Elastic Stack).

"elastic-apm-node": "^3.0.0"

Конфигурация:

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;
})

Версия 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, please downgrade this agent to version 1.x or upgrade the APM Server
{"statusCode":404,"error":"Not Found","message":"Not Found"}
...