From c2449b85627707c58f4823b277d8a214fef12012 Mon Sep 17 00:00:00 2001 From: Suguru ARAKAWA Date: Mon, 15 Apr 2024 10:57:15 +0900 Subject: [PATCH] feat(tgdump): enrich session information. --- .../tsurugidb/tools/common/connection/ConnectionProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/common/connection/src/main/java/com/tsurugidb/tools/common/connection/ConnectionProvider.java b/modules/common/connection/src/main/java/com/tsurugidb/tools/common/connection/ConnectionProvider.java index 3c3be58..134d2e2 100644 --- a/modules/common/connection/src/main/java/com/tsurugidb/tools/common/connection/ConnectionProvider.java +++ b/modules/common/connection/src/main/java/com/tsurugidb/tools/common/connection/ConnectionProvider.java @@ -119,7 +119,8 @@ protected Session attempt(@Nonnull ConnectionSettings settings, @Nonnull Credent LOG.trace("enter: attempt: {} ({})", credential, settings); //$NON-NLS-1$ var builder = SessionBuilder.connect(settings.getEndpointUri()); builder.withCredential(credential); - // TODO: more settings + settings.getApplicationName().ifPresent(builder::withApplicationName); + settings.getSessionLabel().ifPresent(builder::withLabel); var timeout = settings.getEstablishTimeout(); Session result; if (timeout.isEmpty()) {