Skip to content

Commit

Permalink
Jdbi3 readme: Fix variable name in example (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdtalsma authored and malafeev committed Jan 16, 2019
1 parent 4f5d183 commit c0a3e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentracing-jdbi3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Span parentSpan = ...; // optional
Query statement = handle.createQuery("SELECT COUNT(*) FROM accounts");

// If a parent Span is available, establish the relationship via setParent.
OpentracingSqlLogger.setParent(statement, parent);
OpentracingSqlLogger.setParent(statement, parentSpan);

// Use Jdbi as per usual, and Spans will be created for every SqlStatement automatically.
List<Map<String, Object>> results = statement.mapToMap().list();
Expand Down

0 comments on commit c0a3e62

Please sign in to comment.