@@ -149,12 +149,56 @@ static final class ClosedException extends RuntimeException {
149149 this .dbAdminClient = new DatabaseAdminClientImpl (options .getProjectId (), gapicRpc );
150150 this .instanceClient =
151151 new InstanceAdminClientImpl (options .getProjectId (), gapicRpc , dbAdminClient );
152+ logSpannerOptions (options );
152153 }
153154
154155 SpannerImpl (SpannerOptions options ) {
155156 this (options .getSpannerRpcV1 (), options );
156157 }
157158
159+ private void logSpannerOptions (SpannerOptions options ) {
160+ logger .log (
161+ Level .INFO ,
162+ "Spanner options: "
163+ + "\n Project ID: "
164+ + options .getProjectId ()
165+ + "\n Host: "
166+ + options .getHost ()
167+ + "\n Num gRPC channels: "
168+ + options .getNumChannels ()
169+ + "\n Leader aware routing enabled: "
170+ + options .isLeaderAwareRoutingEnabled ()
171+ + "\n Direct access enabled: "
172+ + options .isEnableDirectAccess ()
173+ + "\n Active Tracing Framework: "
174+ + SpannerOptions .getActiveTracingFramework ()
175+ + "\n API tracing enabled: "
176+ + options .isEnableApiTracing ()
177+ + "\n Extended tracing enabled: "
178+ + options .isEnableExtendedTracing ()
179+ + "\n End to end tracing enabled: "
180+ + options .isEndToEndTracingEnabled ()
181+ + "\n Built-in metrics enabled: "
182+ + options .isEnableBuiltInMetrics ());
183+ if (options .getSessionPoolOptions () != null ) {
184+ logger .log (
185+ Level .INFO ,
186+ "Session pool options: "
187+ + "\n Session pool min sessions: "
188+ + options .getSessionPoolOptions ().getMinSessions ()
189+ + "\n Session pool max sessions: "
190+ + options .getSessionPoolOptions ().getMaxSessions ()
191+ + "\n Multiplexed sessions enabled: "
192+ + options .getSessionPoolOptions ().getUseMultiplexedSession ()
193+ + "\n Multiplexed sessions enabled for RW: "
194+ + options .getSessionPoolOptions ().getUseMultiplexedSessionForRW ()
195+ + "\n Multiplexed sessions enabled for blind write: "
196+ + options .getSessionPoolOptions ().getUseMultiplexedSessionBlindWrite ()
197+ + "\n Multiplexed sessions enabled for partitioned ops: "
198+ + options .getSessionPoolOptions ().getUseMultiplexedSessionPartitionedOps ());
199+ }
200+ }
201+
158202 /** Returns the {@link SpannerRpc} of this {@link SpannerImpl} instance. */
159203 SpannerRpc getRpc () {
160204 return gapicRpc ;
0 commit comments