Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Mention the 0.30 compatibility package in the README. (#236)
Browse files Browse the repository at this point in the history
* Mention the 0.30 compatibility package in the README.
  • Loading branch information
carlosalberto committed Dec 20, 2017
1 parent 046a827 commit 24f155c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ Observe that passing `Scope` to another thread or callback is not supported. Onl

In practice, all of this is most fluently accomplished through the use of an OpenTracing-aware `ExecutorService` and/or `Runnable`/`Callable` adapter; they factor out most of the typing.

## Compatibility with Opentracing 0.30

For users supporting instrumentation code using Opentracing 0.30, there is a [0.30 compatibility package](https://github.com/opentracing/opentracing-java-v030) that can be used to wrap a 0.31 `Tracer` and expose it as a 0.30 `Tracer`:

```java
io.opentracing.Tracer upstreamTracer = ...;
io.opentracing.v_030.Tracer tracer = new TracerShim(upstreamTracer);
try (ActiveSpan span = tracer.buildSpan("ServiceHandlerSpan").startActive()) {
...
}
```

## Instrumentation Tests

This project has a working design of interfaces for the OpenTracing API. There
Expand Down

0 comments on commit 24f155c

Please sign in to comment.