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

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

Closed

Description

@odeke-em

An issue for myself to fix requests from our last review session

  • update "CloudSpanner.Transaction.execute_streaming_sql" span name to "execute_sql"
  • Starting the CloudSpanner.Transaction.commit span before the inlined .begin()
  • Ensure that using a tracer_provider with ALWAYS_OFF set doesn't crash due to NonRecording span not having _span
-            if (not span._status) or span._status.status_code == StatusCode.UNSET:
+            if getattr(span, '_status', None) is None or span._status.status_code == StatusCode.UNSET:

Thanks @harshachinta @surbhigarg92 @sakthivelmanii

Activity

  1. added 4 commits that reference this issue on Jan 9, 2025
    e83b4af
    423e5bc
    c953e5b
    6fba449
  2. added a commit that references this issue on Jan 13, 2025
    d9ee75a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/python-spanner API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions