You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add cloud.region, request_tag and transaction_tag in span attributes (#1449)
This change enhances observability by introducing these new features:
1. **Cloud Region Attribute**: The `cloud.region` attribute is now added
to all OpenTelemetry spans generated by the Spanner client. This
provides better geographical context for traces, aiding in performance
analysis and debugging across different regions.
2. **Transaction Tag**: The `transaction_tag` set on a `Transaction`
object is now correctly propagated and included in the `Commit` request.
This allows for better end-to-end traceability of transactions.
3. **Request Tag**: This introduces support for `request_tag` on
individual Spanner operations like `read`, `execute_sql`, and
`execute_update`. When a `request_tag` is provided in the
`request_options`, it is now added as a `spanner.request_tag` attribute
to the corresponding OpenTelemetry span. This allows for more granular
tracing and debugging of specific requests within a transaction or a
snapshot.
---------
Co-authored-by: surbhigarg92 <surbhigarg.92@gmail.com>
0 commit comments