0

我尝试在 Spring Boot 中实现基于配置文件的应用程序,这显然适用于 Spring Boot。但是当我尝试为弹性搜索 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 调用它时,它可以工作。

你有什么建议吗?

4

1 回答 1

1

您可以通过 ElasticApmAttacher#attach(map of properties)尝试此处描述的方法 disscuss -elastic 。

于 2020-04-13T20:09:07.197 回答