使用 Jetty 服务器将 spring 云侦探添加到 Spring 应用程序
Add spring cloud sleuth to Spring application with Jetty server
我正在尝试将 spring 云侦探与使用码头服务器的现有 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 启动应用程序,请使用 https://github.com/openzipkin/brave。 Spring Cloud Sleuth 基于引导。
我正在尝试将 spring 云侦探与使用码头服务器的现有 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 启动应用程序,请使用 https://github.com/openzipkin/brave。 Spring Cloud Sleuth 基于引导。