Skip to content

Commit

Permalink
Remove requested span event "Using Transaction"
Browse files Browse the repository at this point in the history
  • Loading branch information
odeke-em committed Dec 10, 2024
1 parent 6d6b30a commit 7ed482e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions google/cloud/spanner_v1/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,6 @@ def run_in_transaction(self, func, *args, **kw):
if txn_id:
span_attributes["transaction.id"] = txn_id

add_span_event(span, "Using Transaction", span_attributes)

try:
return_value = func(txn, *args, **kw)
except Aborted as exc:
Expand Down
2 changes: 0 additions & 2 deletions tests/system/test_observability_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ def select_in_txn(txn):
want_events = [
("Starting Commit", {}),
("Commit Done", {}),
("Using Transaction", {"attempt": 1}),
(
"exception",
{
Expand All @@ -261,7 +260,6 @@ def select_in_txn(txn):
"Transaction was aborted in user operation, retrying",
{"delay_seconds": "EPHEMERAL", "attempt": 1},
),
("Using Transaction", {"attempt": 2}),
("Acquiring session", {"kind": "BurstyPool"}),
("Waiting for a session to become available", {"kind": "BurstyPool"}),
("No sessions available in pool. Creating session", {"kind": "BurstyPool"}),
Expand Down

0 comments on commit 7ed482e

Please sign in to comment.