0

我有以下要求,是否有任何开源库将涵盖所有这些。

1.We are building a distributed micro service architecture with Spring Boot.Which includes more than 100 micro services.
2.There is a lot if inter micro service communications possible to achieve single transaction.
3.We want to trace every micro service call and the trace should provide following information. 
 a.Transaction ID/Trace ID
 b. Back end transaction status-HTTP status for REST.Like wise for SOAP as well.
 c.Time taken for that call.
 d.Request and Response payload.
Currently we are achieving this using indigenous tracing frame work.Is there any open source project will handle all this without any coding from developer.I know we have few options with spring Boot Cloud Zipkin,Seluth etc does this handle above requirements. 
4

1 回答 1

1

我的项目与您的要求相似。恕我直言,Spring-cloud-sleuth + Zipkin 在我的情况下效果很好。

对于任何微服务之间的通信,我们使用的是Kafka,Spring-cloud-sleuth + zipkin 可以毫无问题地追踪所有的调用,从REST -> Kafka -> More Kafka -> REST。

要启用 Kafka Tracing,只需添加

spring:
  sleuth:
    propagation-keys: some-key
    sampler:
      probability: 1
    messaging:
      kafka:
        enabled: true

我们还使用 Azure ApplicationInsights 进行集中式日志记录,它与 Spring Cloud 很好地集成。

以上希望能给你一些使用 Sleuth + Zipkin 的信心。

于 2019-05-30T16:45:13.503 回答