Dissable connection to APM Server (ELASTIC_APM_DISABLE_SEND)

Continuing the discussion from Unable to disable APM via environment variable:

I have the next use case, I have a application with spring boot and opentracing, thus need get the traceid in local and dev environment but not have the apm server, thus I need disable. I've tried add the next properties:


but in the log print this message:

2019-10-17 14:38:46.646 [apm-remote-config-poller] ERROR co.elastic.apm.agent.report.HttpUtils - Exception when closing input stream of HttpURLConnection.
2019-10-17 14:38:46.646 [apm-remote-config-poller] ERROR co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Connection refused (Connection refused)

I seen in python agent that have you property:


Is there something similar in java?

Could you explain your use case a bit more? Why do you need the trace id in dev but don't have an APM server? Is the problem that you just don't want to see the errors in the logs?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.