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

fix: db.params OpenTelemetry integration issue #346

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

gillesleblanc
Copy link
Contributor

When db.params are not all of the same type OpenTelemetry will log a warning.

Prevent this by stringifying values.

Also adds a SQLALCHEMY_SPANNER_TRACE_HIDE_QUERY_PARAMETERS env var to prevent logging db.params to OpenTelemetry.

Fixes #345

When db.params are not all of the same type OpenTelemetry will log a warning.

Prevent this by stringifying values.

Also adds a  SQLALCHEMY_SPANNER_TRACE_HIDE_QUERY_PARAMETERS env var to prevent logging db.params to OpenTelemetry.
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API. label Oct 10, 2023
@olavloite
Copy link
Contributor

@gillesleblanc Sorry for the slow turnaround on this PR. The build errors seem to be unrelated to this change. I'm working on fixing those in #351, and after that we should be able to move this one forward as well.

@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 25, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 25, 2023
@olavloite olavloite merged commit 0a69031 into googleapis:main Oct 25, 2023
11 checks passed
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-sqlalchemy API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration between Spanner SqlAlchemy and OpenTelemetry is generating a lot of warnings
3 participants