[英]Integrating Spring cloud sleuth with Spring project
I am trying to integrate spring cloud sleuth with an existing spring application which uses jetty server. 我正在尝试将Spring Cloud Sleuth与使用Jetty服务器的现有Spring应用程序集成。
I have added 我已经添加了
<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>
and 和
<dependencies>
<dependency>spring-cloud-starter-sleuth</dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependencies>
How should I pass the logger properties, logging pattern while starting the app? 启动应用程序时如何传递记录器属性和记录模式? Right now, it does not read the properties file under /resources folder and no traceId or spanId is generated. 现在,它不会读取/ resources文件夹下的属性文件,并且不会生成traceId或spanId。
Most of the examples have used Spring Boot. 大多数示例都使用了Spring Boot。 Need help to figure out how to integrate this with a Spring application with jetty server. 需要帮助以弄清楚如何将其与带有Jetty服务器的Spring应用程序集成。
Spring Cloud Sleuth is Spring Boot based. Spring Cloud Sleuth是基于Spring Boot的。 Please use https://github.com/openzipkin/brave for non Spring Boot based applications. 请对非基于Spring Boot的应用程序使用https://github.com/openzipkin/brave 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.