Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit bc526a5

Browse files
committed
Merge main into session-pool-cleanup
Resolved conflict: - tests/unit/test_pool.py: Deleted (we removed pool tests, main modified them)
2 parents 482c0f8 + ed4735b commit bc526a5

File tree

17 files changed

+111
-52
lines changed

17 files changed

+111
-52
lines changed

.librarian/state.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209
22
libraries:
33
- id: google-cloud-spanner
4-
version: 3.61.0
4+
version: 3.62.0
55
last_generated_commit: a17b84add8318f780fcc8a027815d5fee644b9f7
66
apis:
77
- path: google/spanner/admin/instance/v1

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44

55
[1]: https://pypi.org/project/google-cloud-spanner/#history
66

7+
## [3.62.0](https://github.com/googleapis/python-spanner/compare/v3.61.0...v3.62.0) (2026-01-14)
8+
9+
10+
### Features
11+
12+
* add uuid support (#1310) ([3b1792aad1d046b6ae1e5c982f5047289dffd95c](https://github.com/googleapis/python-spanner/commit/3b1792aad1d046b6ae1e5c982f5047289dffd95c))
13+
14+
15+
### Bug Fixes
16+
17+
* handle errors during stream restart in snapshot (#1471) ([c0668735cb69532f4c852bb7678f63e54da2d34e](https://github.com/googleapis/python-spanner/commit/c0668735cb69532f4c852bb7678f63e54da2d34e))
18+
* resolve pre-release dependency failures and sqlparse recursion (#1472) ([9ec95b7df5e921112bd58b820722103177e0e5b6](https://github.com/googleapis/python-spanner/commit/9ec95b7df5e921112bd58b820722103177e0e5b6))
19+
* transaction_tag should be set on BeginTransactionRequest (#1463) ([3d3cea0b5afb414a506ab08eebae733d803f17ac](https://github.com/googleapis/python-spanner/commit/3d3cea0b5afb414a506ab08eebae733d803f17ac))
20+
721
## [3.61.0](https://github.com/googleapis/python-spanner/compare/v3.60.0...v3.61.0) (2025-12-16)
822

923

google/cloud/spanner_admin_database_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.61.0" # {x-release-please-version}
16+
__version__ = "3.62.0" # {x-release-please-version}

google/cloud/spanner_admin_instance_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.61.0" # {x-release-please-version}
16+
__version__ = "3.62.0" # {x-release-please-version}

google/cloud/spanner_dbapi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
import platform
1616

1717
PY_VERSION = platform.python_version()
18-
__version__ = "3.61.0"
18+
__version__ = "3.62.0"
1919
VERSION = __version__
2020
DEFAULT_USER_AGENT = "gl-dbapi/" + VERSION

google/cloud/spanner_v1/_opentelemetry_tracing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
TRACER_NAME = "cloud.google.com/python/spanner"
3838
TRACER_VERSION = gapic_version.__version__
39+
GCP_RESOURCE_NAME_PREFIX = "//spanner.googleapis.com/"
3940
extended_tracing_globally_disabled = (
4041
os.getenv("SPANNER_ENABLE_EXTENDED_TRACING", "").lower() == "false"
4142
)
@@ -106,6 +107,7 @@ def trace_call(
106107
"gcp.client.service": "spanner",
107108
"gcp.client.version": TRACER_VERSION,
108109
"gcp.client.repo": "googleapis/python-spanner",
110+
"gcp.resource.name": GCP_RESOURCE_NAME_PREFIX + db_name,
109111
}
110112

111113
if extra_attributes:

google/cloud/spanner_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.61.0" # {x-release-please-version}
16+
__version__ = "3.62.0" # {x-release-please-version}

google/cloud/spanner_v1/snapshot.py

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -146,27 +146,12 @@ def _restart_on_unavailable(
146146

147147
except ServiceUnavailable:
148148
del item_buffer[:]
149-
with trace_call(
150-
trace_name,
151-
session,
152-
attributes,
153-
observability_options=observability_options,
154-
metadata=metadata,
155-
) as span, MetricsCapture():
156-
request.resume_token = resume_token
157-
if transaction is not None:
158-
transaction_selector = transaction._build_transaction_selector_pb()
159-
request.transaction = transaction_selector
160-
attempt += 1
161-
iterator = method(
162-
request=request,
163-
metadata=request_id_manager.metadata_with_request_id(
164-
nth_request,
165-
attempt,
166-
metadata,
167-
span,
168-
),
169-
)
149+
request.resume_token = resume_token
150+
if transaction is not None:
151+
transaction_selector = transaction._build_transaction_selector_pb()
152+
request.transaction = transaction_selector
153+
attempt += 1
154+
iterator = None
170155
continue
171156

172157
except InternalServerError as exc:
@@ -177,27 +162,12 @@ def _restart_on_unavailable(
177162
if not resumable_error:
178163
raise
179164
del item_buffer[:]
180-
with trace_call(
181-
trace_name,
182-
session,
183-
attributes,
184-
observability_options=observability_options,
185-
metadata=metadata,
186-
) as span, MetricsCapture():
187-
request.resume_token = resume_token
188-
if transaction is not None:
189-
transaction_selector = transaction._build_transaction_selector_pb()
190-
attempt += 1
191-
request.transaction = transaction_selector
192-
iterator = method(
193-
request=request,
194-
metadata=request_id_manager.metadata_with_request_id(
195-
nth_request,
196-
attempt,
197-
metadata,
198-
span,
199-
),
200-
)
165+
request.resume_token = resume_token
166+
if transaction is not None:
167+
transaction_selector = transaction._build_transaction_selector_pb()
168+
attempt += 1
169+
request.transaction = transaction_selector
170+
iterator = None
201171
continue
202172

203173
if len(item_buffer) == 0:

samples/generated_samples/snippet_metadata_google.spanner.admin.database.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-spanner-admin-database",
11-
"version": "3.61.0"
11+
"version": "3.62.0"
1212
},
1313
"snippets": [
1414
{

samples/generated_samples/snippet_metadata_google.spanner.admin.instance.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-spanner-admin-instance",
11-
"version": "3.61.0"
11+
"version": "3.62.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)