GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(tracing): ensure nesting of Transaction.begin under commit + fix suggestions from feature review by odeke-em · Pull Request #1287 · googleapis/python-spanner

This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Conversation

@odeke-em

@odeke-em odeke-em commented Jan 9, 2025

Copy link
Copy Markdown
Contributor

This change ensures that:

  • If a transaction was not yet begin, that if .commit() is invoked the resulting span hierarchy has .begin nested under .commit
  • We use "CloudSpanner.Transaction.execute_sql" instead of "CloudSpanner.Transaction.execute_streaming_sql"
  • If we have a tracer_provider that produces non-recordings spans, that it won't crash due to lacking span._status

Fixes #1286

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@odeke-em
odeke-em requested review from a team January 9, 2025 10:50
@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: spanner Issues related to the googleapis/python-spanner API. labels Jan 9, 2025
@blunderbuss-gcf blunderbuss-gcf Bot assigned olavloite Jan 9, 2025
@harshachinta harshachinta assigned harshachinta and unassigned olavloite Jan 9, 2025
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2025
@odeke-em
odeke-em force-pushed the trace-update-cases-from-review branch from e83b4af to 423e5bc Compare January 9, 2025 11:01
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2025
harshachinta
harshachinta reviewed Jan 10, 2025
View reviewed changes
Comment thread tests/system/test_observability_options.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/unit/test_database.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/unit/test_transaction.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/unit/test_transaction.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/unit/test_database.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
@odeke-em
odeke-em force-pushed the trace-update-cases-from-review branch from d32aab2 to 68cae9d Compare January 10, 2025 08:47
@odeke-em
odeke-em requested a review from harshachinta January 10, 2025 08:49
@odeke-em
odeke-em force-pushed the trace-update-cases-from-review branch from 68cae9d to 44b2862 Compare January 10, 2025 09:03
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
@odeke-em
fix(tracing): ensure nesting of Transaction.begin under commit + fix …
6fba449
…suggestions from feature review

This change ensures that:
* If a transaction was not yet begin, that if .commit() is invoked
the resulting span hierarchy has .begin nested under .commit
* We use "CloudSpanner.Transaction.execute_sql" instead of
  "CloudSpanner.Transaction.execute_streaming_sql"
* If we have a tracer_provider that produces non-recordings spans,
that it won't crash due to lacking `span._status`

Fixes googleapis#1286
@odeke-em
odeke-em force-pushed the trace-update-cases-from-review branch 2 times, most recently from 8c27fc6 to 8ac5d36 Compare January 10, 2025 12:32
@odeke-em

odeke-em commented Jan 10, 2025

Copy link
Copy Markdown
Contributor Author

@harshachinta kindly please help me run the bots on this. Thank you.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sakthivelmanii sakthivelmanii added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
@odeke-em
Address code review requests
56f97a2
@odeke-em
odeke-em force-pushed the trace-update-cases-from-review branch from 8ac5d36 to 56f97a2 Compare January 10, 2025 16:22
@odeke-em

odeke-em commented Jan 10, 2025

Copy link
Copy Markdown
Contributor Author

@sakthivelmanii @harshachinta kindly help me run those bots once more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
@odeke-em
Fix by lint
3466af4
@odeke-em

odeke-em commented Jan 11, 2025

Copy link
Copy Markdown
Contributor Author

Another re-run of the bots, kindly @harshachinta @sakthivelmanii @alkatrivedi

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sakthivelmanii sakthivelmanii added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 11, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 11, 2025
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 13, 2025
harshachinta
harshachinta approved these changes Jan 13, 2025
View reviewed changes
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 13, 2025
@harshachinta
harshachinta merged commit d9ee75a into googleapis:main Jan 13, 2025
@release-please release-please Bot mentioned this pull request Jan 13, 2025
chore(main): release 3.52.0 #1258
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@harshachinta harshachinta harshachinta approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@harshachinta harshachinta

Labels

api: spanner Issues related to the googleapis/python-spanner API. size: l Pull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

tracing: update CloudSpanner.Transaction.execute_streaming_sql to execute_sql; start Transaction.commit span up top to ensure

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@odeke-em @harshachinta @olavloite @yoshi-kokoro @sakthivelmanii
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.