FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(tracing): only set span.status=OK if UNSET by odeke-em · Pull Request #1248 · googleapis/python-spanner · GitHub

This repository was archived by the owner on Jun 8, 2026. It is now read-only.
/ python-spanner Public archive

fix(tracing): only set span.status=OK if UNSET - #1248

Merged
harshachinta merged 4 commits into
googleapis:mainfrom
odeke-em:trace-fix-trace_call-unconditionally-setting-span_status_OK
Dec 6, 2024
Merged

harshachinta merged 4 commits into
googleapis:mainfrom
odeke-em:trace-fix-trace_call-unconditionally-setting-span_status_OK

Conversation

odeke-em commented Dec 3, 2024

Copy link
Copy Markdown
Contributor

In modernized OpenTelemetry-Python, if the SpanStatus was not already set to OK, it can be changed and
the code for trace_call was accidentally unconditionally setting the status to OK if there was no exception. This change fixes that and adds tests to lock this behavior in.

Fixes #1246

odeke-em requested review from a team December 3, 2024 09:42
product-auto-label Bot added the size: s Pull request size is small. label Dec 3, 2024
product-auto-label Bot added the api: spanner Issues related to the googleapis/python-spanner API. label Dec 3, 2024
odeke-em force-pushed the trace-fix-trace_call-unconditionally-setting-span_status_OK branch from d1018ac to f1d41ee Compare December 4, 2024 11:39
odeke-em requested a review from harshachinta December 4, 2024 11:40
harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 4, 2024
harshachinta added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 4, 2024
yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 4, 2024
In modernized OpenTelemetry-Python, if the SpanStatus
was not already set to OK, it can be changed and
the code for trace_call was accidentally unconditionally
setting the status to OK if there was no exception.
This change fixes that and adds tests to lock this behavior in.

Fixes googleapis#1246
odeke-em force-pushed the trace-fix-trace_call-unconditionally-setting-span_status_OK branch from f1d41ee to 981fab5 Compare December 5, 2024 06:35
harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 5, 2024
yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 5, 2024
harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 5, 2024
yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 5, 2024
harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 5, 2024
yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 5, 2024
harshachinta added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Dec 6, 2024
yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2024
harshachinta enabled auto-merge (squash) December 6, 2024 06:09
harshachinta merged commit 1d393fe into googleapis:main Dec 6, 2024
This file contains hidden or 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/python-spanner API. size: s Pull request size is small.

Projects

None yet

4 participants


Back | FazBrowse Home | New Git URL