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:
disable_instrumentations=true
metrics_interval=0
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:
ELASTIC_APM_DISABLE_SEND
Is there something similar in java?