我正在尝试将 spring cloud sleuth 与使用 jetty 服务器的现有 spring 应用程序集成。
我已经添加了
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth</artifactId>
<version>1.2.4.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
和
<dependencies>
<dependency>spring-cloud-starter-sleuth</dependency>
</dependencies>
我应该如何在启动应用程序时传递记录器属性、记录模式?现在,它不会读取 /resources 文件夹下的属性文件,也不会生成 traceId 或 spanId。
大多数示例都使用了 Spring Boot。需要帮助弄清楚如何将其与带有码头服务器的 Spring 应用程序集成。
对于非 Spring Boot 应用程序,请使用https://github.com/openzipkin/brave。Spring Cloud Sleuth 是基于 Boot 的。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句