Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

observability: PDML + some batch write spans #1274

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

odeke-em
Copy link
Contributor

This change adds spans for Partitioned DML and making updates for Batch.

Carved out from PR #1241.

@odeke-em odeke-em requested review from a team as code owners December 17, 2024 12:55
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: spanner Issues related to the googleapis/python-spanner API. labels Dec 17, 2024
@odeke-em odeke-em force-pushed the trace-pdml branch 2 times, most recently from c11580f to 7dfb796 Compare December 27, 2024 14:12
@odeke-em
Copy link
Contributor Author

@harshachinta @olavloite kindly help me run the bots for this PR. Thank you.

@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 27, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 27, 2024
@odeke-em
Copy link
Contributor Author

@harshachinta @olavloite kindly help me re-run the bots, I had to account for Python3.7 in the tests and fixed that, all pass locally.

@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 28, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 28, 2024
google/cloud/spanner_v1/database.py Show resolved Hide resolved
google/cloud/spanner_v1/database.py Outdated Show resolved Hide resolved
google/cloud/spanner_v1/merged_result_set.py Outdated Show resolved Hide resolved
google/cloud/spanner_v1/session.py Outdated Show resolved Hide resolved
google/cloud/spanner_v1/snapshot.py Show resolved Hide resolved
tests/system/test_observability_options.py Outdated Show resolved Hide resolved
tests/system/test_observability_options.py Show resolved Hide resolved
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 8, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 8, 2025
Comment on lines 1233 to 1234
if not HAS_OPENTELEMETRY_INSTALLED:
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed right since assertSpanAttributes method already checks for this condition?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, before I was manually comparing attributes and span names but with the update that I made I no longer need it, done, thanks!

Comment on lines 1231 to 1244
attributes=dict(
BASE_ATTRIBUTES, table_id=TABLE_NAME, columns=tuple(COLUMNS)
),
attributes=want_span_attributes,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing has changed here? why not keep it the same?

tests/unit/test_snapshot.py Show resolved Hide resolved
tests/unit/test_transaction.py Outdated Show resolved Hide resolved
tests/unit/test_transaction.py Outdated Show resolved Hide resolved
@odeke-em
Copy link
Contributor Author

odeke-em commented Jan 9, 2025

@harshachinta kindly help me run the bots. Thank you

@sakthivelmanii sakthivelmanii added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2025
@odeke-em
Copy link
Contributor Author

@harshachinta all done, kindly help me kick off the bots!

@odeke-em
Copy link
Contributor Author

@alkatrivedi @sakthivelmanii kindly help me run the bots

@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants