diff --git a/CHANGELOG.md b/CHANGELOG.md index 721922886..253b60c08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions +## [7.17.1](https://github.com/googleapis/nodejs-spanner/compare/v7.17.0...v7.17.1) (2025-01-03) + + +### Bug Fixes + +* 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) + ## [7.17.0](https://github.com/googleapis/nodejs-spanner/compare/v7.16.0...v7.17.0) (2024-12-27) diff --git a/package.json b/package.json index 8ab398153..a633f96b1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/spanner", "description": "Cloud Spanner Client Library for Node.js", - "version": "7.17.0", + "version": "7.17.1", "license": "Apache-2.0", "author": "Google Inc.", "engines": { diff --git a/samples/package.json b/samples/package.json index 141968d42..4b31e02b7 100644 --- a/samples/package.json +++ b/samples/package.json @@ -17,7 +17,7 @@ "dependencies": { "@google-cloud/kms": "^4.0.0", "@google-cloud/precise-date": "^4.0.0", - "@google-cloud/spanner": "^7.17.0", + "@google-cloud/spanner": "^7.17.1", "protobufjs": "^7.0.0", "yargs": "^17.0.0" }, diff --git a/src/index.ts b/src/index.ts index f0f88a801..9281484c9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,7 +85,6 @@ import * as v1 from './v1'; import { ObservabilityOptions, ensureInitialContextManagerSet, - ensureContextPropagation, } from './instrument'; // eslint-disable-next-line @typescript-eslint/no-var-requires @@ -378,7 +377,6 @@ class Spanner extends GrpcService { this._observabilityOptions?.enableEndToEndTracing ); ensureInitialContextManagerSet(); - ensureContextPropagation(); } /** diff --git a/src/instrument.ts b/src/instrument.ts index 2c7998733..e4cb8d283 100644 --- a/src/instrument.ts +++ b/src/instrument.ts @@ -27,7 +27,6 @@ import { Span, SpanStatusCode, context, - propagation, trace, INVALID_SPAN_CONTEXT, ROOT_CONTEXT, @@ -100,8 +99,6 @@ const { AsyncHooksContextManager, } = require('@opentelemetry/context-async-hooks'); -const {W3CTraceContextPropagator} = require('@opentelemetry/core'); - /* * This function ensures that async/await works correctly by * checking if context.active() returns an invalid/unset context @@ -121,14 +118,8 @@ function ensureInitialContextManagerSet() { } } -function ensureContextPropagation() { - propagation.setGlobalPropagator(new W3CTraceContextPropagator()); -} - export {ensureInitialContextManagerSet}; -export {ensureContextPropagation}; - /** * startTrace begins an active span in the current active context * and passes it back to the set callback function. Each span will