@google-cloud/spanner 8.3.0 → 8.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -104,12 +104,14 @@ Refer to the Observability README to know more about tracing support in the Clou
104
104
 
105
105
  ## Multiplexed Sessions
106
106
 
107
- Spanner's Multiplexed Sessions can now be used as an efficient alternative to the default session pool. This feature helps reduce
108
- session management overhead and minimize session-related errors. Multiplexed sessions can be enabled for all transaction types via environment variables.
107
+ Spanner's Multiplexed Sessions is now default enabled session mode in node client. This feature helps reduce
108
+ session management overhead and minimize session-related errors.
109
109
 
110
- ### Configuration
110
+ For a detailed explanation on multiplexed sessions, please refer to the [official documentation](https://cloud.google.com/spanner/docs/sessions#multiplexed_sessions).
111
111
 
112
- To enable this feature, set the following environment variables to `true`:
112
+ ## Regular Sessions
113
+
114
+ To use regular sessions, disable the multiplexed sessions and set the following environment variables to `false`:
113
115
 
114
116
  * **For Read-Only Transactions:**
115
117
  - `GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS`
@@ -120,7 +122,7 @@ To enable this feature, set the following environment variables to `true`:
120
122
  - `GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS`
121
123
  - `GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW`
122
124
 
123
- For a detailed explanation of this feature, please refer to the [official documentation](https://cloud.google.com/spanner/docs/sessions#multiplexed_sessions).
125
+ For a detailed explanation on session modes and env configurations, please refer to the [official documentation](https://cloud.google.com/spanner/docs/sessions).
124
126
 
125
127
 
126
128
  ## Samples
@@ -852,12 +852,6 @@ declare class Spanner extends GrpcService {
852
852
  * Setup the OpenTelemetry metrics capturing for service metrics to Google Cloud Monitoring.
853
853
  */
854
854
  configureMetrics_(disableBuiltInMetrics?: boolean): void;
855
- /**
856
- * Logs the Spanner configurations that have been set.
857
- *
858
- * @private
859
- */
860
- private _logSpannerConfigurations;
861
855
  /**
862
856
  * Prepare a gapic request. This will cache the GAX client and replace
863
857
  * {{projectId}} placeholders, if necessary.
@@ -307,7 +307,6 @@ class Spanner extends service_1.GrpcService {
307
307
  this._universeDomain = universeEndpoint;
308
308
  this.projectId_ = options.projectId;
309
309
  this.configureMetrics_(options.disableBuiltInMetrics);
310
- this._logSpannerConfigurations(config);
311
310
  }
312
311
  get universeDomain() {
313
312
  return this._universeDomain;
@@ -795,31 +794,6 @@ class Spanner extends service_1.GrpcService {
795
794
  }
796
795
  }
797
796
  }
798
- /**
799
- * Logs the Spanner configurations that have been set.
800
- *
801
- * @private
802
- */
803
- _logSpannerConfigurations(config) {
804
- try {
805
- const afeServerTiming = Spanner.isAFEServerTimingEnabled();
806
- console.log('Spanner configurations:\n' +
807
- ` Project ID: ${this.projectId_}\n` +
808
- ` Spanner Emulator Host: ${process.env.SPANNER_EMULATOR_HOST || 'not set'}\n` +
809
- ` Base URL: ${config.baseUrl}\n` +
810
- ` Leader aware routing enabled: ${this.routeToLeaderEnabled}\n` +
811
- ` Built in metrics enabled: ${metrics_tracer_factory_1.MetricsTracerFactory.enabled}\n` +
812
- ` AFE Server Timing enabled: ${afeServerTiming}\n` +
813
- ` Spanner extended tracing enabled: ${this._observabilityOptions?.enableExtendedTracing === true || process.env.SPANNER_ENABLE_EXTENDED_TRACING === 'true' || false}\n` +
814
- ` Spanner end-to-end tracing enabled: ${this._observabilityOptions?.enableEndToEndTracing === true || process.env.SPANNER_ENABLE_END_TO_END_TRACING === 'true' || false}\n` +
815
- ` GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: ${process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS || 'not set'}\n` +
816
- ` GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_PARTITIONED_OPS: ${process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_PARTITIONED_OPS || 'not set'}\n` +
817
- ` GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW: ${process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW || 'not set'}\n `);
818
- }
819
- catch (error) {
820
- console.log('Unable to log Spanner configurations:\n' + error);
821
- }
822
- }
823
797
  /**
824
798
  * Prepare a gapic request. This will cache the GAX client and replace
825
799
  * {{projectId}} placeholders, if necessary.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/spanner",
3
3
  "description": "Cloud Spanner Client Library for Node.js",
4
- "version": "8.3.0",
4
+ "version": "8.3.1",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc.",
7
7
  "engines": {