archive/brave-jaxrs2

Jersey 2.x integration that uses the brave api to submit client and server side span information.

License

License

Categories

Categories

Zipkin Application Testing & Monitoring Application Performance Monitoring (APM)
GroupId

GroupId

io.zipkin.brave
ArtifactId

ArtifactId

brave-jaxrs2
Last Version

Last Version

4.13.6
Release Date

Release Date

Type

Type

jar
Description

Description

archive/brave-jaxrs2
Jersey 2.x integration that uses the brave api to submit client and server side span information.
Project Organization

Project Organization

OpenZipkin

Download brave-jaxrs2

How to add to project

<!-- https://jarcasting.com/artifacts/io.zipkin.brave/brave-jaxrs2/ -->
<dependency>
    <groupId>io.zipkin.brave</groupId>
    <artifactId>brave-jaxrs2</artifactId>
    <version>4.13.6</version>
</dependency>
// https://jarcasting.com/artifacts/io.zipkin.brave/brave-jaxrs2/
implementation 'io.zipkin.brave:brave-jaxrs2:4.13.6'
// https://jarcasting.com/artifacts/io.zipkin.brave/brave-jaxrs2/
implementation ("io.zipkin.brave:brave-jaxrs2:4.13.6")
'io.zipkin.brave:brave-jaxrs2:jar:4.13.6'
<dependency org="io.zipkin.brave" name="brave-jaxrs2" rev="4.13.6">
  <artifact name="brave-jaxrs2" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.zipkin.brave', module='brave-jaxrs2', version='4.13.6')
)
libraryDependencies += "io.zipkin.brave" % "brave-jaxrs2" % "4.13.6"
[io.zipkin.brave/brave-jaxrs2 "4.13.6"]

Dependencies

compile (3)

Group / Artifact Type Version
io.zipkin.brave : brave-http jar 4.13.6
javax.inject : javax.inject jar 1
javax.annotation : javax.annotation-api jar 1.2

provided (1)

Group / Artifact Type Version
javax.ws.rs : javax.ws.rs-api jar 2.0.1

test (8)

Group / Artifact Type Version
com.google.inject : guice jar 4.1.0
junit : junit jar 4.12
org.assertj : assertj-core jar 3.9.0
org.apache.logging.log4j : log4j-core jar 2.10.0
org.apache.logging.log4j : log4j-jul jar 2.10.0
org.apache.logging.log4j : log4j-1.2-api jar 2.10.0
org.apache.logging.log4j : log4j-slf4j-impl jar 2.10.0
org.mockito : mockito-all jar 1.10.19

Project Modules

There are no modules declared in this project.

Gitter chat Build Status Maven Central

Brave

Brave is a distributed tracing instrumentation library. Brave typically intercepts production requests to gather timing data, correlate and propagate trace contexts. While typically trace data is sent to Zipkin server, third-party plugins are available to send to alternate services such as Amazon X-Ray.

This repository includes dependency-free Java libraries and instrumentation for common components used in production services. For example, this includes trace filters for Servlet and log correlation for Apache Log4J.

You can look at our example project for how to trace a simple web application.

What's included

Brave's dependency-free tracer library works against JRE6+. This is the underlying api that instrumentation use to time operations and add tags that describe them. This library also includes code that parses X-B3-TraceId headers.

Most users won't write tracing code directly. Rather, they reuse instrumentation others have written. Check our instrumentation and Zipkin's list before rolling your own. Common tracing libraries like JDBC, Servlet and Spring already exist. Instrumentation written here are tested and benchmarked.

If you are trying to trace legacy applications, you may be interested in Spring XML Configuration. This allows you to setup tracing without any custom code.

You may want to put trace IDs into your log files, or change thread local behavior. Look at our context libraries, for integration with tools such as SLF4J.

Version Compatibility policy

All Brave libraries match the minimum Java version of what's being traced or integrated with, and adds no 3rd party dependencies. The goal is to neither impact your projects' choices, nor subject your project to dependency decisions made by others.

For example, even including a basic reporting library, zipkin-sender-urlconnection, Brave transitively includes no json, logging, protobuf or thrift dependency. This means zero concern if your application chooses a specific version of SLF4J, Gson or Guava. Moreover, the entire dependency tree including basic reporting in json, thrift or protobuf is less than 512KiB of jars.

There is a floor Java version of 1.6, which allows older JREs and older Android runtimes, yet may limit some applications. For example, Servlet 2.5 works with Java 1.5, but due to Brave being 1.6, you will not be able to trace Servlet 2.5 applications until you use at least JRE 1.6.

All integrations set their associated library to "provided" scope. This ensures Brave doesn't interfere with the versions you choose.

Some libraries update often which leads to api drift. In some cases, we test versions ranges to reduce the impact of this. For example, we test gRPC and Kafka against multiple library versions.

Artifacts

All artifacts publish to the group ID "io.zipkin.brave". We use a common release version for all components.

Library Releases

Snapshots are uploaded to Sonatype which synchronizes with Maven Central

Library Snapshots

Snapshots are uploaded to Sonatype after commits to master.

Version alignments

When using multiple brave components, you'll want to align versions in one place. This allows you to more safely upgrade, with less worry about conflicts.

You can use our Maven instrumentation BOM (Bill of Materials) for this:

Ex. in your dependencies section, import the BOM like this:

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>io.zipkin.brave</groupId>
        <artifactId>brave-bom</artifactId>
        <version>${brave.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

Now, you can leave off the version when choosing any supported instrumentation. Also any indirect use will have versions aligned:

<dependency>
  <groupId>io.zipkin.brave</groupId>
  <artifactId>brave-instrumentation-okhttp3</artifactId>
</dependency>

With the above in place, you can use the property brave.version to override dependency versions coherently. This is most commonly to test a new feature or fix.

Note: If you override a version, always double check that your version is valid (equal to or later) than what you are updating. This will avoid class conflicts.

io.zipkin.brave

Open Zipkin

Versions

Version
4.13.6
4.13.5
4.13.4
4.13.3
4.13.2
4.13.1
4.13.0
4.12.0
4.11.0
4.10.1
4.10.0
4.9.2
4.9.1
4.9.0
4.8.1
4.8.0
4.7.2
4.7.1
4.7.0
4.6.0
4.5.2
4.5.1
4.5.0
4.4.0
4.3.4
4.3.3
4.3.2
4.3.1
4.3.0
4.2.0
4.1.1
4.1.0
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.18.0
3.17.1
3.17.0
3.16.0
3.15.4
3.15.3
3.15.1
3.15.0
3.14.1
3.14.0
3.13.0
3.11.1
3.11.0
3.10.0
3.9.1
3.9.0
3.8.0