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
Requiring elastic-apm-node/start from within the source code
Starting node with -r elastic-apm-node/start
Additional context
Agent config options:
Click to expand
var apm = require('elastic-apm-node').start({
// Override service name from package.json
// Allowed characters: a-z, A-Z, 0-9, -, _, and space
serviceName: 'my-apm-server',
secretToken: '',
// Set custom APM Server URL (default: http://127.0.0.1:8200)
serverUrl: 'https://my-apm-http:8200',
// Only activate the agent if it's running in production
active: process.env.NODE_ENV === 'production',
verifyServerCert: false,
ignoreUrls: [
/^\/health\//i,
/^\/[._]+next\//i,
/^\/robots.txt/
],
logLevel: 'trace'
})
package.json dependencies:
Click to expand
replace this line with your dependencies section from package.json
The text was updated successfully, but these errors were encountered:
I guess this issue comes from the conversation in discuss.elastic.com. If I understood right you managed to configure ECK with the assistance of my colleagues and now the final step is to have the nodejs agent properly configured which is why you created #3598 .
So let's focus on #3598 for now and review this one after the former is being fixed. Is that okay?
Describe the bug
I have APM server and fleet 8.9.0 running in my k8s cluster and seen the following error today:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment (please complete the following information)
How are you starting the agent? (please tick one of the boxes)
agent.start()
directly (e.g.require('elastic-apm-node').start(...)
)elastic-apm-node/start
from within the source code-r elastic-apm-node/start
Additional context
Agent config options:
Click to expand
package.json
dependencies:Click to expand
The text was updated successfully, but these errors were encountered: