Depend on this:
implementation 'com.github.openzipkin-contrib.zipkin-secondary-sampling:brave-secondary-sampling:CURRENT_RELEASE'
Exclude brave from transitive deps
// This is part is irrelevant if you don't use sleuth
implementation("org.springframework.cloud:spring-cloud-starter-zipkin") {
exclude group: "io.zipkin.brave" // use brave from brave-secondary-sampling
}
Depend on this:
<dependency>
<groupId>io.zipkin.contrib.zipkin-secondary-sampling</groupId>
<artifactId>brave-secondary-sampling</artifactId>
<version>CURRENT_RELEASE</version>
</dependency>
Exclude brave from transitive deps
<!-- This is part is irrelevant if you don't use sleuth -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
<exclusions>
<exclusion>
<!-- use brave from brave-secondary-sampling -->
<groupId>io.zipkin.brave</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
TODO more instructions
All artifacts publish to the group ID "io.zipkin.contrib.zipkin-secondary-sampling". We use a common release version for all components.
Releases are at Sonatype and Maven Central
Snapshots are uploaded to Sonatype after commits to master.