Skip to content

Commit

Permalink
Merge branch 'main' into multiplexed-session-support-read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
alkatrivedi authored Jan 9, 2025
2 parents 901b4e9 + 9f77f9f commit b895c3f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@

[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)


### Features

* Add the last statement option to ExecuteSqlRequest and ExecuteBatchDmlRequest ([#2196](https://github.com/googleapis/nodejs-spanner/issues/2196)) ([223f167](https://github.com/googleapis/nodejs-spanner/commit/223f167c1c9bc4da26155637eabbcabce5487ede))
* Enable e2e tracing ([#2202](https://github.com/googleapis/nodejs-spanner/issues/2202)) ([3cc257e](https://github.com/googleapis/nodejs-spanner/commit/3cc257e99925594776b9a1886f0173ce2dfe904f))


### Bug Fixes

* Span events Issue 2166 ([#2184](https://github.com/googleapis/nodejs-spanner/issues/2184)) ([97ed577](https://github.com/googleapis/nodejs-spanner/commit/97ed5776dbdf5e90f8398fffea08e2a968045f9b))

## [7.16.0](https://github.com/googleapis/nodejs-spanner/compare/v7.15.0...v7.16.0) (2024-11-09)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@google-cloud/spanner",
"description": "Cloud Spanner Client Library for Node.js",
"version": "7.16.0",
"version": "7.17.1",
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@google-cloud/kms": "^4.0.0",
"@google-cloud/precise-date": "^4.0.0",
"@google-cloud/spanner": "^7.16.0",
"@google-cloud/spanner": "^7.17.1",
"protobufjs": "^7.0.0",
"yargs": "^17.0.0"
},
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ import * as v1 from './v1';
import {
ObservabilityOptions,
ensureInitialContextManagerSet,
ensureContextPropagation,
} from './instrument';

// eslint-disable-next-line @typescript-eslint/no-var-requires
Expand Down Expand Up @@ -378,7 +377,6 @@ class Spanner extends GrpcService {
this._observabilityOptions?.enableEndToEndTracing
);
ensureInitialContextManagerSet();
ensureContextPropagation();
}

/**
Expand Down
9 changes: 0 additions & 9 deletions src/instrument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
Span,
SpanStatusCode,
context,
propagation,
trace,
INVALID_SPAN_CONTEXT,
ROOT_CONTEXT,
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b895c3f

Please sign in to comment.