Skip to content

feat(spanner): return commit response and stats#5522

Open
olavloite wants to merge 3 commits intogoogleapis:mainfrom
olavloite:spanner-commit-response-and-stats
Open

feat(spanner): return commit response and stats#5522
olavloite wants to merge 3 commits intogoogleapis:mainfrom
olavloite:spanner-commit-response-and-stats

Conversation

@olavloite
Copy link
Copy Markdown
Contributor

  • The TransactionRunner did not return the CommitResponse. This made it impossible for an application to inspect the commit timestamp.
  • There was no option for returning commit stats. These are only included in the CommitResponse when explicitly requested.

Both of the above is added in this change.

The change in return type for TransactionRunner is a breaking change, but that is OK, as we have not yet released this client.

@olavloite olavloite requested review from a team as code owners April 24, 2026 15:26
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label Apr 24, 2026
- The TransactionRunner did not return the CommitResponse. This made it impossible
  for an application to inspect the commit timestamp.
- There was no option for returning commit stats. These are only included in the
  CommitResponse when explicitly requested.

Both of the above is added in this change.

The change in return type for TransactionRunner is a breaking change, but that is OK,
as we have not yet released this client.
@olavloite olavloite force-pushed the spanner-commit-response-and-stats branch from 69fce17 to 4813acd Compare April 24, 2026 15:41
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.77%. Comparing base (e199cf6) to head (fb02560).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #5522    +/-   ##
========================================
  Coverage   97.76%   97.77%            
========================================
  Files         221      221            
  Lines       51115    51280   +165     
========================================
+ Hits        49973    50138   +165     
  Misses       1142     1142            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant