@google-cloud/spanner 7.17.0 → 7.17.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/CHANGELOG.md +7 -0
- package/build/src/index.js +0 -1
- package/build/src/instrument.d.ts +0 -2
- package/build/src/instrument.js +0 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [7.17.1](https://github.com/googleapis/nodejs-spanner/compare/v7.17.0...v7.17.1) (2025-01-03)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* Remove default global trace context propagator ([#2209](https://github.com/googleapis/nodejs-spanner/issues/2209)) ([7898e0c](https://github.com/googleapis/nodejs-spanner/commit/7898e0ce0477e2d4327822ac26a2674203b47a64)), closes [#2208](https://github.com/googleapis/nodejs-spanner/issues/2208)
|
|
13
|
+
|
|
7
14
|
## [7.17.0](https://github.com/googleapis/nodejs-spanner/compare/v7.16.0...v7.17.0) (2024-12-27)
|
|
8
15
|
|
|
9
16
|
|
package/build/src/index.js
CHANGED
|
@@ -202,7 +202,6 @@ class Spanner extends service_1.GrpcService {
|
|
|
202
202
|
this._observabilityOptions = options.observabilityOptions;
|
|
203
203
|
this.commonHeaders_ = (0, common_1.getCommonHeaders)(this.projectFormattedName_, (_a = this._observabilityOptions) === null || _a === void 0 ? void 0 : _a.enableEndToEndTracing);
|
|
204
204
|
(0, instrument_1.ensureInitialContextManagerSet)();
|
|
205
|
-
(0, instrument_1.ensureContextPropagation)();
|
|
206
205
|
}
|
|
207
206
|
/**
|
|
208
207
|
* Gets the InstanceAdminClient object.
|
|
@@ -44,9 +44,7 @@ interface traceConfig {
|
|
|
44
44
|
declare const SPAN_NAMESPACE_PREFIX = "CloudSpanner";
|
|
45
45
|
export { SPAN_NAMESPACE_PREFIX, traceConfig };
|
|
46
46
|
declare function ensureInitialContextManagerSet(): void;
|
|
47
|
-
declare function ensureContextPropagation(): void;
|
|
48
47
|
export { ensureInitialContextManagerSet };
|
|
49
|
-
export { ensureContextPropagation };
|
|
50
48
|
/**
|
|
51
49
|
* startTrace begins an active span in the current active context
|
|
52
50
|
* and passes it back to the set callback function. Each span will
|
package/build/src/instrument.js
CHANGED
|
@@ -18,7 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.SPAN_NAMESPACE_PREFIX = exports.TRACER_VERSION = exports.TRACER_NAME = void 0;
|
|
19
19
|
exports.getTracer = getTracer;
|
|
20
20
|
exports.ensureInitialContextManagerSet = ensureInitialContextManagerSet;
|
|
21
|
-
exports.ensureContextPropagation = ensureContextPropagation;
|
|
22
21
|
exports.startTrace = startTrace;
|
|
23
22
|
exports.setSpanError = setSpanError;
|
|
24
23
|
exports.setSpanErrorAndException = setSpanErrorAndException;
|
|
@@ -47,7 +46,6 @@ function getTracer(tracerProvider) {
|
|
|
47
46
|
const SPAN_NAMESPACE_PREFIX = 'CloudSpanner'; // TODO: discuss & standardize this prefix.
|
|
48
47
|
exports.SPAN_NAMESPACE_PREFIX = SPAN_NAMESPACE_PREFIX;
|
|
49
48
|
const { AsyncHooksContextManager, } = require('@opentelemetry/context-async-hooks');
|
|
50
|
-
const { W3CTraceContextPropagator } = require('@opentelemetry/core');
|
|
51
49
|
/*
|
|
52
50
|
* This function ensures that async/await works correctly by
|
|
53
51
|
* checking if context.active() returns an invalid/unset context
|
|
@@ -66,9 +64,6 @@ function ensureInitialContextManagerSet() {
|
|
|
66
64
|
api_1.context.setGlobalContextManager(contextManager);
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
|
-
function ensureContextPropagation() {
|
|
70
|
-
api_1.propagation.setGlobalPropagator(new W3CTraceContextPropagator());
|
|
71
|
-
}
|
|
72
67
|
/**
|
|
73
68
|
* startTrace begins an active span in the current active context
|
|
74
69
|
* and passes it back to the set callback function. Each span will
|