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: used environment variable to control tracing which allows tracing to be off during pytest run and normal API run #1455

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

linglp
Copy link
Contributor

@linglp linglp commented Jul 2, 2024

Context

Related to: https://sagebionetworks.jira.com/browse/FDS-2177
Also related to: #1430

Changes

used environment variable to control tracing which allows tracing to be off during pytest run and normal API run
Note: The code was partly borrowed from synapse python client. See original code here: https://github.com/Sage-Bionetworks/synapsePythonClient/blob/develop/tests/integration/conftest.py

Tests

When I did pytest -m "table_operations" or pytest -s tests/test_manifest.py::TestManifestGenerator, I am no longer seeing the warnings related to opentelemetry

Copy link
Collaborator

@BryanFauble BryanFauble left a comment

Choose a reason for hiding this comment

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

LGTM! Just one comment

Copy link

sonarqubecloud bot commented Jul 2, 2024

Copy link
Contributor

@GiaJordan GiaJordan left a comment

Choose a reason for hiding this comment

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

🚀

@linglp linglp merged commit 7ada9cf into develop Jul 9, 2024
4 checks passed
@linglp linglp deleted the develop-fix-tracer branch July 9, 2024 15:29
@lakikowolfe lakikowolfe mentioned this pull request Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants