You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is this the default behavior ? can we disable this ?
HTTP 514907: SOCKET ERROR: socket connection to metadata token server timed out Error: socket connection to metadata token server timed out
at ClientRequest.<anonymous> (app/node_modules/elastic-apm-node/lib/cloud-metadata/aws.js:138:7)
at ClientRequest.emit (node:events:524:28)
at Timeout.onConnectTimeout [as _onTimeout] (app/node_modules/elastic-apm-node/lib/http-request.js:137:13)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7)
HTTP 514907: SOCKET ERROR: could not ping azure metadata server Error: could not ping azure metadata server
at ClientRequest.<anonymous> (app/node_modules/elastic-apm-node/lib/cloud-metadata/azure.js:72:17)
at ClientRequest.emit (node:events:524:28)
at Timeout.onConnectTimeout [as _onTimeout] (app/node_modules/elastic-apm-node/lib/http-request.js:137:13)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7)
The text was updated successfully, but these errors were encountered:
It is the default behaviour to attempt to reach the local metadata endpoints on startup to gather that information. It is meant to only log at the debug-level and below if one is not running inside any of those cloud providers (Azure, AWS, GCP). For example when using an example script from the apm-agent-nodejs.git repo:
$ ELASTIC_LOG_LEVEL=trace node examples/trace-http.js
...
{"log.level":"debug","@timestamp":"2025-02-10T16:01:12.889Z","log.logger":"elastic-apm-node","ecs.version":"8.10.0","message":"no cloud metadata servers responded"}
{"log.level":"trace","@timestamp":"2025-02-10T16:01:12.889Z","log.logger":"elastic-apm-node","ecs.version":"8.10.0","event.module":"apmclient","message":"getCloudMetadata err: Error: no response from any callback, no cloud metadata will be set (normal outside of cloud env.)"}
...
The error that you are seeing is different than what I've seen before, so there is possibly an issue for us to deal with here.
disable this
If you know you aren't running your services in one of these environments and/or do not care about having cloud metadata associated with your tracing data, then you can disable this via the cloudProvider: 'none' config setting (or ELASTIC_APM_CLOUD_PROVIDER=none env var):
is this the default behavior ? can we disable this ?
The text was updated successfully, but these errors were encountered: