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

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pavolloffay committed Sep 11, 2017
1 parent 431ebc3 commit a0d98fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentracing-mock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The `opentracing-mock` artifact (and `io.opentracing.mock.MockTracer` in particu

Imagine the following (admittedly unrealistic) OpenTracing-instrumented application code:

```
```java
public void handlePurchase(User user, Item item, Tracer tracer) {
try (ActiveSpan span = tracer.buildSpan("handlePurchase").startActive()) {
span.setTag("username", user.getUsername());
Expand All @@ -16,7 +16,7 @@ public void handlePurchase(User user, Item item, Tracer tracer) {

Using `MockTracer`, one could write a unittest for the above instrumentation like so:

```
```java
@Test
public void testHandlePurchaseTracing() {
// Initialize the MockTracer and call handlePurchase().
Expand Down

0 comments on commit a0d98fa

Please sign in to comment.