elasticsearch,properties,apm,Spring Boot,elasticsearch,Properties,Apm" /> elasticsearch,properties,apm,Spring Boot,elasticsearch,Properties,Apm" />

Spring boot 从Spring Boot应用程序属性调用弹性APM属性

Spring boot 从Spring Boot应用程序属性调用弹性APM属性,spring-boot,elasticsearch,properties,apm,Spring Boot,elasticsearch,Properties,Apm,我尝试在SpringBoot中实现基于概要文件的应用程序,这显然适用于SpringBoot。但当我尝试为弹性搜索APM实现它时,它不起作用 根据:我们可以用elastic.apm前缀描述如下属性: elastic.apm.service_name=my-cool-service elastic.apm.application_packages=org.example,org.another.example elastic.apm.server_urls=http://localhost:8200

我尝试在SpringBoot中实现基于概要文件的应用程序,这显然适用于SpringBoot。但当我尝试为弹性搜索APM实现它时,它不起作用

根据:我们可以用elastic.apm前缀描述如下属性:

elastic.apm.service_name=my-cool-service
elastic.apm.application_packages=org.example,org.another.example
elastic.apm.server_urls=http://localhost:8200
但它不起作用。当我用elasticapm.properties调用它时,它就工作了


您有什么建议吗?

您可以通过ElasticapAttacher#attach(属性地图)尝试这里介绍的方法