Skip to content

Commit 499c8dc

Browse files
committed
Fix JDBC 'read tenant' span not getting closed.
Signed-off-by: Carsten Lohmann <[email protected]> (cherry picked from commit 33c167d)
1 parent 7e61cb0 commit 499c8dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/base-jdbc/src/main/java/org/eclipse/hono/service/base/jdbc/store/tenant/AbstractTenantStore.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ public Future<Optional<TenantReadResult>> readTenant(final String id, final Span
111111
this.client,
112112
this.tracer,
113113
span.context(),
114-
(connection, context) -> readTenantBy(connection, expanded, context)
115-
);
114+
(connection, context) -> readTenantBy(connection, expanded, context))
115+
.onComplete(x -> span.finish());
116116

117117
}
118118

0 commit comments

Comments
 (0)