Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
odeke-em committed Nov 29, 2024
1 parent 024b223 commit be40273
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions google/cloud/spanner_v1/merged_result_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from typing import Any, TYPE_CHECKING
from threading import Lock, Event

from google.cloud.spanner_v1._opentelemetry_tracing import trace_call

if TYPE_CHECKING:
from google.cloud.spanner_v1.database import BatchSnapshot

Expand Down
7 changes: 3 additions & 4 deletions tests/system/test_observability_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ def test_propagation(enable_extended_tracing):
wantAnnotatedSQL = "SELECT 1"
if not enable_extended_tracing:
wantAnnotatedSQL = None
assert (
lastSpan.attributes.get("db.statement", None),
wantAnnotatedSQL,
) # "Mismatch in annotated sql"

gotAnnotatedSQL = lastSpan.attributes.get("db.statement", None)
assert gotAnnotatedSQL == wantAnnotatedSQL

try:
db.delete()
Expand Down

0 comments on commit be40273

Please sign in to comment.