标签:Once alt sed under str ror learning zip error
Annotation: Used to record the existence of an event in time. With Brave instrumentation, we no longer need to set special events for Zipkin to understand who the client and server are, where the request started, and where it ended. For learning purposes, however, we mark these events to highlight what kind of an action took place.
cs
timestamp from this timestamp reveals the network latency.sr
timestamp from this timestamp reveals the time needed by the server side to process the request.cs
timestamp from this timestamp reveals the whole time needed by the client to receive the response from the server.
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-sleuth</artifactId> </dependency>
--- spring: sleuth: sampler: probability: 1.0
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-zipkin</artifactId> </dependency>
---
spring:
zipkin:
base-url: http://localhost:9411
---
spring:
zipkin:
sender:
type: RABBIT
---
spring:
zipkin:
sender:
type: KAFKA
C. Web
default
upgrade to Spring Boot 2.0 NoClassDefFoundError UndertowEmbeddedServletContainerFactory
https://mvnrepository.com/artifact/io.zipkin.java/zipkin-server
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-stream</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-stream-binder-rabbit</artifactId> </dependency>
---
spring:
rabbitmq:
addresses: 192.168.1.115
port: 15672
username: admin
password: admin
virtual-host: sleuth
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-stream</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-stream-binder-kafka</artifactId> </dependency>
spring:
kafka:
bootstrap-servers:
- 192.168.1.186:9092
- 192.168.1.187:9092
- 192.168.1.188:9092
Reference:
1. Trazabilidad Distribuida con Spring Cloud: Sleuth y Zipkin
Distributed traceability with Spring Cloud: Sleuth and Zipkin
标签:Once alt sed under str ror learning zip error
原文地址:https://www.cnblogs.com/xiaobin-hlj80/p/10052026.html