cn.zull.tracing:all

Parent pom providing dependency and plugin management for applications built with Maven

License

License

GroupId

GroupId

cn.zull.tracing
ArtifactId

ArtifactId

all
Last Version

Last Version

0.5.11-RELEASE
Release Date

Release Date

Type

Type

pom
Description

Description

Parent pom providing dependency and plugin management for applications built with Maven
Project URL

Project URL

https://projects.spring.io/spring-boot/#/spring-boot-starter-parent/all
Source Code Management

Source Code Management

https://github.com/ZuRun/tracing

Download all

Filename Size
all-0.5.11-RELEASE.pom 7 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/cn.zull.tracing/all/ -->
<dependency>
    <groupId>cn.zull.tracing</groupId>
    <artifactId>all</artifactId>
    <version>0.5.11-RELEASE</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/cn.zull.tracing/all/
implementation 'cn.zull.tracing:all:0.5.11-RELEASE'
// https://jarcasting.com/artifacts/cn.zull.tracing/all/
implementation ("cn.zull.tracing:all:0.5.11-RELEASE")
'cn.zull.tracing:all:pom:0.5.11-RELEASE'
<dependency org="cn.zull.tracing" name="all" rev="0.5.11-RELEASE">
  <artifact name="all" type="pom" />
</dependency>
@Grapes(
@Grab(group='cn.zull.tracing', module='all', version='0.5.11-RELEASE')
)
libraryDependencies += "cn.zull.tracing" % "all" % "0.5.11-RELEASE"
[cn.zull.tracing/all "0.5.11-RELEASE"]

Dependencies

compile (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-web jar 2.0.5.RELEASE

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.18

Project Modules

  • tracing-core
  • tracing-dubbo
  • tracing-rocketmq
  • tracing-mybatis

Quick start

依赖

gradle

// 全局设置版本号
ext {
    tracing_version = '0.0.11-RELEASE'
}

compile "cn.zull.tracing:tracing-core:${tracing_version}" 
compile "cn.zull.tracing:tracing-dubbo:${tracing_version}" 
compile "cn.zull.tracing:tracing-mybatis:${tracing_version}" 
compile "cn.zull.tracing:tracing-rocketmq:${tracing_version}" 

Maven

<dependency>
   <groupId>cn.zull.tracing</groupId>
   <artifactId>tracing-core</artifactId>
   <version>${tracing_version}</version>
</dependency>  

根据需要添加依赖

处理已收集的链路信息

实现TracingLogHandler接口,并注册bean对象即可

示例:

@Component
public class MyTracingLogHandler implements TracingLogHandler {
    private final Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void handler(TraceLog traceLog) {
        logger.info("链路信息:{}", traceLog.toString());
    }
}

配置文件

新建classpath:/tracing.properties文件

默认配置:

# 是否开启链路监控
tracing.enable = true
# 是否将traceId添加到日志文件中(例如log4j等)
tracing.logShowTracing = true
# 是否开启rest请求默认链路拦截器
tracing.rest.filter = true

Versions

Version
0.5.11-RELEASE
0.5.10-RELEASE
0.5.9-RELEASE
0.5.5-RELEASE
0.5.4-RELEASE
0.5.2-RELEASE
0.5.1-RELEASE
0.5.0-RELEASE
0.0.15-RELEASE
0.0.13-RELEASE
0.0.12-RELEASE
0.0.10-RELEASE
0.0.9-RELEASE
0.0.7-RELEASE
0.0.6-RELEASE
0.0.5-RELEASE
0.0.4-RELEASE
0.0.3-RELEASE
0.0.2-RELEASE