mirror of https://gitee.com/maxjhandsome/pig
异步消费 整合 elastic-search
This commit is contained in:
parent
2df98cd326
commit
236bf6a917
|
@ -63,7 +63,15 @@
|
|||
<!--zipkin-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
|
||||
<artifactId>spring-cloud-sleuth-stream</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-sleuth</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-stream-binder-rabbit</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -11,11 +11,6 @@ spring:
|
|||
enabled: true
|
||||
profile: ${spring.profiles.active}
|
||||
label: master
|
||||
zipkin:
|
||||
base-url: http://localhost:5002
|
||||
sleuth:
|
||||
sampler:
|
||||
percentage: 1.0
|
||||
---
|
||||
spring:
|
||||
profiles: dev
|
||||
|
|
|
@ -23,13 +23,23 @@
|
|||
<artifactId>pig-common</artifactId>
|
||||
<version>${pig.version}</version>
|
||||
</dependency>
|
||||
<!--zipkin-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-sleuth-zipkin-stream</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.zipkin.java</groupId>
|
||||
<artifactId>zipkin-autoconfigure-ui</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-stream-binder-rabbit</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.zipkin.java</groupId>
|
||||
<artifactId>zipkin-server</artifactId>
|
||||
<artifactId>zipkin-autoconfigure-storage-elasticsearch-http</artifactId>
|
||||
<version>1.28.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.github.pig.zipkin;
|
|||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import zipkin.server.EnableZipkinServer;
|
||||
import org.springframework.cloud.sleuth.zipkin.stream.EnableZipkinStreamServer;
|
||||
|
||||
/**
|
||||
* @author lengleng
|
||||
|
@ -12,7 +12,7 @@ import zipkin.server.EnableZipkinServer;
|
|||
*/
|
||||
@EnableDiscoveryClient
|
||||
@SpringBootApplication
|
||||
@EnableZipkinServer
|
||||
@EnableZipkinStreamServer
|
||||
public class PigZipkinElkApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
Loading…
Reference in New Issue