| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Updated based on apache/airflow#13131 to not warn at import time. |
Sorry, something went wrong.
There was a problem hiding this comment.
I agree that the warning should not be issued at import time, but instead when trying to actually use BigQuery (discussion).
DEBUG level is probably indeed better, as opentelemetry is not used by default (it's listed under extras), thus shouldn't bother users that don't choose to install it.
We should choose a different name for the flag, though, IMHO.
Sorry, something went wrong.
| "add opentelemetry-api and opentelemetry-instrumentation " | ||
| "packages in order to get BigQuery Tracing data." | ||
| ) | ||
| WARNED_OPENTELEMETRY = True |
There was a problem hiding this comment.
(nit) It's a bit unexpected to change a "constant", perhaps rename it? Also, since it's an internal state-keeping flag that users should neither know about nor modify it, we should probably mark it as such (e.g. _warned_telemetry)
Sorry, something went wrong.
There was a problem hiding this comment.
Good call. I've renamed in the latest commit.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #441 🦕