Skip to content

Commit

Permalink
do not finish finished span
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Malafeev <sergeymalafeev@gmail.com>
  • Loading branch information
malafeev committed Nov 5, 2018
1 parent 57511fe commit 5fa3e5e
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,7 @@ public RedisFuture<String> swapdb(int db1, int db2) {
Span span = helper.buildSpan("swapdb");
span.setTag("db1", db1);
span.setTag("db2", db2);
try {
return prepareRedisFuture(commands.swapdb(db1, db2), span);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
return prepareRedisFuture(commands.swapdb(db1, db2), span);
}

@Override
Expand Down

0 comments on commit 5fa3e5e

Please sign in to comment.