forked from googleapis/python-spanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(observability): more descriptive and value adding spans
This change adds more descriptive and value adding spans to replace the generic CloudSpanner.ReadWriteTransaction. With this change, we add new spans: * CloudSpanner.Database.run_in_transaction * CloudSpanner.execute_pdml * CloudSpanner.execute_sql * CloudSpanner.execute_update Reduce edit changes Propagate db_name when session is None Update system tests + test_session Database.execute_pdml: add events for before and after BeginTransaction Database.run_in_transaction: add span_events for using Transaction and aborted fix tests Trace (FixedSizePool, PingingPool).BatchCreateSessions in bind Add another form of tracing with explicit .close() invocation General touch-ups for every better fine-grained spans and events Use add_event_on_current_span helper more Make updates and fix up tests Wring up passthrough context manager Address updates from running transaction aborting All add much deeper tests to check for span statuses plus retries+abort Also while here, fixed googleapis#1246 More upates for test span results Updates from self review
- Loading branch information
Showing
14 changed files
with
922 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.