Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 斯普林·克劳斯初级侦探+;轴突跟踪弹簧引导启动器=?_Spring_Spring Boot_Spring Cloud Sleuth_Axon_Axon Framework - Fatal编程技术网

Spring 斯普林·克劳斯初级侦探+;轴突跟踪弹簧引导启动器=?

Spring 斯普林·克劳斯初级侦探+;轴突跟踪弹簧引导启动器=?,spring,spring-boot,spring-cloud-sleuth,axon,axon-framework,Spring,Spring Boot,Spring Cloud Sleuth,Axon,Axon Framework,标题说明了一切。有没有可能让SpringCloudStarterSleuth与axon跟踪SpringBootStarter一起工作 当前日志输出: 2021-06-02 15:12:36.449 INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] o.a.m.interceptors.LoggingInterceptor : Dispatched messages: [FindAll] 20

标题说明了一切。有没有可能让SpringCloudStarterSleuth与axon跟踪SpringBootStarter一起工作

当前日志输出:

    2021-06-02 15:12:36.449  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [FindAll]
2021-06-02 15:12:36.455  INFO [,,] 14716 --- [ueryProcessor-9] o.a.m.interceptors.LoggingInterceptor    : Incoming message: [FindAll]
2021-06-02 15:12:36.542  INFO [,,] 14716 --- [ueryProcessor-9] o.a.m.interceptors.LoggingInterceptor    : [FindAll] executed successfully with a [ArrayList] return value
2021-06-02 15:12:36.668  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [KlassificeraApplikationCommand]
2021-06-02 15:12:36.724  INFO [,,] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : Incoming message: [KlassificeraApplikationCommand]
2021-06-02 15:12:36.785  INFO [,,] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : [KlassificeraApplikationCommand] executed successfully with a [null] return value
2021-06-02 15:12:36.785  INFO [,,] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [ApplikationKlassificeradEvent]
2021-06-02 15:12:36.808 TRACE [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] org.zalando.logbook.Logbook              : Incoming Request: null
2021-06-02 15:12:36.449  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [FindAll]
2021-06-02 15:12:36.455  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [ueryProcessor-9] o.a.m.interceptors.LoggingInterceptor    : Incoming message: [FindAll]
2021-06-02 15:12:36.542  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [ueryProcessor-9] o.a.m.interceptors.LoggingInterceptor    : [FindAll] executed successfully with a [ArrayList] return value
2021-06-02 15:12:36.668  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [KlassificeraApplikationCommand]
2021-06-02 15:12:36.724  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : Incoming message: [KlassificeraApplikationCommand]
2021-06-02 15:12:36.785  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : [KlassificeraApplikationCommand] executed successfully with a [null] return value
2021-06-02 15:12:36.785  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [ApplikationKlassificeradEvent]
2021-06-02 15:12:36.808 TRACE [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] org.zalando.logbook.Logbook              : Incoming Request: null
所需的日志输出:

    2021-06-02 15:12:36.449  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [FindAll]
2021-06-02 15:12:36.455  INFO [,,] 14716 --- [ueryProcessor-9] o.a.m.interceptors.LoggingInterceptor    : Incoming message: [FindAll]
2021-06-02 15:12:36.542  INFO [,,] 14716 --- [ueryProcessor-9] o.a.m.interceptors.LoggingInterceptor    : [FindAll] executed successfully with a [ArrayList] return value
2021-06-02 15:12:36.668  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [KlassificeraApplikationCommand]
2021-06-02 15:12:36.724  INFO [,,] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : Incoming message: [KlassificeraApplikationCommand]
2021-06-02 15:12:36.785  INFO [,,] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : [KlassificeraApplikationCommand] executed successfully with a [null] return value
2021-06-02 15:12:36.785  INFO [,,] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [ApplikationKlassificeradEvent]
2021-06-02 15:12:36.808 TRACE [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] org.zalando.logbook.Logbook              : Incoming Request: null
2021-06-02 15:12:36.449  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [FindAll]
2021-06-02 15:12:36.455  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [ueryProcessor-9] o.a.m.interceptors.LoggingInterceptor    : Incoming message: [FindAll]
2021-06-02 15:12:36.542  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [ueryProcessor-9] o.a.m.interceptors.LoggingInterceptor    : [FindAll] executed successfully with a [ArrayList] return value
2021-06-02 15:12:36.668  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [KlassificeraApplikationCommand]
2021-06-02 15:12:36.724  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : Incoming message: [KlassificeraApplikationCommand]
2021-06-02 15:12:36.785  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : [KlassificeraApplikationCommand] executed successfully with a [null] return value
2021-06-02 15:12:36.785  INFO [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [mandProcessor-0] o.a.m.interceptors.LoggingInterceptor    : Dispatched messages: [ApplikationKlassificeradEvent]
2021-06-02 15:12:36.808 TRACE [,2b2fc6a322588b0e,114b332e7847e95f] 14716 --- [nio-8082-exec-5] org.zalando.logbook.Logbook              : Incoming Request: null

似乎
轴突跟踪spring boot starter
正在使用OpenTracing。OpenTracing是一个被抛弃的跟踪库,它从未达到GA/稳定版本。所以,即使有一个简单的方法,我也不会在生产中使用OpenTracing,我会尝试远离它

从3.0版开始,SpringCloudSleuth将跟踪程序抽象出来,并支持多个跟踪程序实现。默认情况下,它支持Brave,这是一个成熟的跟踪库,但Sleuth也支持OpenTelemetry(Sleuth OTel)。OpenTelemetry支持正在酝酿之中,不建议在prod中使用,因为OpenTelemetry跟踪对于Java来说还不是完全稳定的/GA

使用此选项,您可以选择:

  • 向Axon添加对勇敢的支持
    这是我的建议,我将首先为他们打开一个问题
  • OpenTelemetry理论上与OpenTracing兼容(请查看OpenTelemetry文档)
    您可以使用Sleuth OTel和OpenTracing 这方面的问题是:OpenTracing被放弃了,而且从未进行过GA,OpenTelemetry Java跟踪还不稳定,Sleuth OTel还不稳定
  • 您可以为Sleuth实现OpenTracing支持
    我认为这是一个坏主意,这是一个大量的工作和OpenTracing被放弃,从来没有去GA

  • 似乎
    轴突跟踪spring boot starter
    正在使用OpenTracing。OpenTracing是一个被抛弃的跟踪库,它从未达到GA/稳定版本。所以,即使有一个简单的方法,我也不会在生产中使用OpenTracing,我会尝试远离它

    从3.0版开始,SpringCloudSleuth将跟踪程序抽象出来,并支持多个跟踪程序实现。默认情况下,它支持Brave,这是一个成熟的跟踪库,但Sleuth也支持OpenTelemetry(Sleuth OTel)。OpenTelemetry支持正在酝酿之中,不建议在prod中使用,因为OpenTelemetry跟踪对于Java来说还不是完全稳定的/GA

    使用此选项,您可以选择:

  • 向Axon添加对勇敢的支持
    这是我的建议,我将首先为他们打开一个问题
  • OpenTelemetry理论上与OpenTracing兼容(请查看OpenTelemetry文档)
    您可以使用Sleuth OTel和OpenTracing 这方面的问题是:OpenTracing被放弃了,而且从未进行过GA,OpenTelemetry Java跟踪还不稳定,Sleuth OTel还不稳定
  • 您可以为Sleuth实现OpenTracing支持
    我认为这是一个坏主意,这是一个大量的工作和OpenTracing被放弃,从来没有去GA