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