Skip to content

Commit

Permalink
reformat README
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Malafeev <sergeymalafeev@gmail.com>
  • Loading branch information
malafeev committed Jul 5, 2018
1 parent ef9305f commit 644477c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ MongoClient mongoClient = new TracingAsyncMongoClient(tracer, ...);
By default, span names are set to the operation performed by the Mongo client. To customize the span name, provide a MongoSpanNameProvider to the client that alters the span name. If a provder is not provided, the span name will remain the default.

```java
//Create TracingMongoClient with custom span name
// Create TracingMongoClient with custom span name
TracingMongoClient client = new TracingMongoClient(
tracer,
replicaSetAddresses,
Expand All @@ -42,7 +42,7 @@ TracingMongoClient client = new TracingMongoClient(
new PrefixSpanNameProvider("mongo."));
Document doc = new Document();
client.getDatabase("db").getCollection("collection).insertOne(doc);
//Span name is now set to "mongo.insert"
// Span name is now set to "mongo.insert"
```
[ci-img]: https://travis-ci.org/opentracing-contrib/java-mongo-driver.svg?branch=master
Expand Down

0 comments on commit 644477c

Please sign in to comment.