title: Call Elastic APM Properties From Spring Boot Application Properties
body: <p>I try to implement profile based application in Spring Boot and this works for Spring Boot clearly. But when I try to implement it for elastic-search APM, it doesn't work.</p>
  
  <p>According to <a href="https://www.elastic.co/guide/en/apm/agent/java/current/configuration.html#configuration-dynamic" rel="nofollow noreferrer">here</a>: We can describe properties like with elastic.apm prefix:</p>
  
  <pre><code>elastic.apm.service_name=my-cool-service
  elastic.apm.application_packages=org.example,org.another.example
  elastic.apm.server_urls=http://localhost:8200
  </code></pre>
  
  <p>but it doesn't work. When I call it with elasticapm.properties, it works.</p>
  
  <p>Do you have any suggestion?</p>