Skip to content

Conversation

@plamut
Copy link
Contributor

@plamut plamut commented Nov 5, 2021

Closes #1038.

This PR makes sure that the tracing logic is compatible with OpenTelemetry >= 1.1.0 (the first version that supports type checks), and that tests actually fail if a future python-opentelemetry version contains backward-incompatible changes in its API (previously the tests would just be skipped).

PR checklist:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@plamut plamut requested review from a team and tswast November 5, 2021 20:27
@plamut plamut requested a review from a team as a code owner November 5, 2021 20:27
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Nov 5, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 5, 2021
)
except (ImportError, AttributeError) as exc: # pragma: NO COVER
msg = "Error importing from opentelemetry, is the installed version compatible?"
raise ImportError(msg) from exc
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call on raising this here. I'd rather we catch incompatibilities early.

@tswast tswast changed the title fix: support OpenTelemetry >= 1.1.0 deps: support OpenTelemetry >= 1.1.0 Nov 8, 2021
@tswast tswast merged commit 4616cd5 into googleapis:main Nov 8, 2021
@plamut plamut deleted the iss-1038 branch November 8, 2021 16:55
abdelmegahedgoogle pushed a commit to abdelmegahedgoogle/python-bigquery that referenced this pull request Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump minimum OpenTelemetry version to support type checks

2 participants