Elastic Search Version: 7.3.1
APM Server Version: 7.3.1
APM Client Version: APM Java Agent: 1.x (current)
APM Agent language and version: Java 1.8
We are going to use Elastic stack for microservices. Our micro services are spring boot based.
I am writing a spring starter project to automatically attach APM server so that every micro service need not write code to attach apm servers but they just need to include elastic-apm-starter to the microservice.
I am planning to user "attach(Map<String, String> configuration)" method from ElasticApmAttacher. I am implementing a APMConfiguration bean to load properties from application.properties and a provide method which returns configuration as Map<String, String>
@Configuration
@ConfigurationProperties(prefix = "elastic.apm")
public class ElasticAPMConfiguration {
public Map<String, String> getConfiguration() {
//...
}
}
Main idea for doing this is, i want to push the configuration from external configuration management tool.
As per you code, we are loading this properties and passing it to elastic APM once.
How does the elastic apm agent'ss dynamic configuration changes made available for Elastic APM?
For example, as per documentation, elastic.apm.active is a dynamic property. If i change elastic.apm.active in my application.properties how to push this change to APM agent?