Remove elastic.apm prefix from config
This is handled by the PrefixConfigurationSourceWrapper
@@ -8,20 +8,20 @@ import java.net.URL;
public class ReporterConfiguration extends ConfigurationOptionProvider {
private final ConfigurationOption<String> secretToken = ConfigurationOption.<String>stringOption()
- .key("elastic.apm.secret.token")
+ .key("secret_token")
.description("This string is used to ensure that only your agents can send data to your APM server.\n\n" +
"Both the agents and the APM server have to be configured with the same secret token.")
.sensitive()
.buildRequired();
private final ConfigurationOption<URL> serverUrl = ConfigurationOption.<URL>urlOption()
- .key("elastic.apm.server.url")
+ .key("server_url")
.label("The URL for your APM Server")
.description("The URL must be fully qualified, including protocol (http or https) and port.")
.buildWithDefault(UrlValueConverter.INSTANCE.convert("http://localhost:8200"));
private final ConfigurationOption<Integer> serverTimeout = ConfigurationOption.integerOption()
- .key("elastic.apm.server.timeout")
+ .key("server_timeout")
.label("A timeout in seconds.")
.description("If a request to the APM server takes longer than the configured timeout, " +
"the request is cancelled and the event (exception or transaction) is discarded. Set to None to disable timeouts.\n" +
@@ -31,13 +31,13 @@ public class ReporterConfiguration extends ConfigurationOptionProvider {
.buildWithDefault(5);
private final ConfigurationOption<Boolean> verifyServerCert = ConfigurationOption.<Boolean>booleanOption()
- .key("elastic.apm.verify.server.cert")
+ .key("verify_server_cert")
.description("By default, the agent verifies the SSL certificate if you use an HTTPS connection to the APM server.\n\n" +
"Verification can be disabled by changing this setting to false.")
.buildWithDefault(true);
private final ConfigurationOption<Integer> flushInterval = ConfigurationOption.integerOption()
- .key("elastic.apm.flush_interval")
+ .key("flush_interval")
.description("Interval with which transactions should be sent to the APM server, in seconds.\n\n" +
"A lower value will increase the load on your APM server, " +
"while a higher value can increase the memory pressure on your app.\n\n" +
@@ -45,7 +45,7 @@ public class ReporterConfiguration extends ConfigurationOptionProvider {
.buildWithDefault(10);
private final ConfigurationOption<Integer> transactionMaxSpans = ConfigurationOption.integerOption()
- .key("elastic.apm.transaction_max_spans")
+ .key("transaction_max_spans")
.description("Limits the amount of spans that are recorded per transaction.\n\n" +
"This is helpful in cases where a transaction creates a very high amount of spans (e.g. thousands of SQL queries).\n\n" +
"Setting an upper limit will prevent overloading the agent and the APM server with too much work for such edge cases.")
@@ -53,7 +53,7 @@ public class ReporterConfiguration extends ConfigurationOptionProvider {
.buildWithDefault(500);
private final ConfigurationOption<Integer> maxQueueSize = ConfigurationOption.integerOption()
- .key("elastic.apm.max_queue_size")
+ .key("max_queue_size")
.description("Maximum queue length of transactions before sending transactions to the APM server.\n\n" +
"A lower value will increase the load on your APM server," +
"while a higher value can increase the memory pressure of your app.\n\n" +
