New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
secretToken
and serverUrl
don't work at all!
#3598
Comments
Hi @khteh in order to narrow the issue it would be very helpful to have some info regarding the env. At least the NodeJS and Agent versions. Also from version 3.47.0 the Agent logs info about the configuration and where it comes from so, for example if you run ELASTIC_APM_SECRET_TOKEN=my-super-secret-token ELASTIC_APM_SERVER_URL=https://my-apm-server:8080 node ./examples/trace-http.js You will see a log similar to this one
But if you do not set the ENV vars and start the agent at the top of your file require('elastic-apm-node').start({
serviceName: 'example-trace-http',
serverUrl: 'https://from-start-options-server:8000',
secretToken: 'secret-token-from-options',
}); the output shows the source of the config is
Having this info (nodejs & agent versions, 1st log line) would be a very good input to start looking into a way of reproducing the issue. |
could I close this one based on your response in #3568 ? are you still having issues configuring the nodejs agent? |
No! |
This duplicate config needs fix! |
Okay could you share the log line I mentioned in my previous comment? (guessing you have agent 3.47.0 or higher) |
I don't see the issue after upgraded to the latest version. Removed redundant |
Describe the bug
Having these options in the configuration of your library does NOT work at all! We still have to define the env
ELASTIC_APM_SECRET_TOKEN
andELASTIC_APM_SERVER_URL
in our pod spec!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: