Skip to content

Commit

Permalink
Fix span in Command Router not getting finished.
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Lohmann <[email protected]>
  • Loading branch information
calohmn committed Jan 6, 2021
1 parent 2288f26 commit 251b147
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ public Future<JsonObject> getCommandHandlingAdapterInstances(
.withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_CLIENT)
.start();
return deviceConnectionInfo
.getCommandHandlingAdapterInstances(tenant, deviceId, new HashSet<>(viaGateways), span);
.getCommandHandlingAdapterInstances(tenant, deviceId, new HashSet<>(viaGateways), span)
.onFailure(thr -> TracingHelper.logError(span, thr))
.onComplete(ar -> span.finish());
}
});
commandConsumerFactory.initialize(commandTargetMapper);
Expand Down

0 comments on commit 251b147

Please sign in to comment.