Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

deps: support OpenTelemetry >= 1.1.0 - #1050

Merged
tswast merged 1 commit into
googleapis:mainfrom
plamut:iss-1038
Nov 8, 2021
Merged

deps: support OpenTelemetry >= 1.1.0#1050
tswast merged 1 commit into
googleapis:mainfrom
plamut:iss-1038

Conversation

@plamut

Copy link
Copy Markdown
Contributor

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 tswastNovember 5, 2021 20:27
@product-auto-labelproduct-auto-labelBot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Nov 5, 2021
@google-clagoogle-claBot 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
Copy Markdown
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.

@tswasttswast changed the title fix: support OpenTelemetry >= 1.1.0deps: support OpenTelemetry >= 1.1.0Nov 8, 2021
@tswast
tswast merged commit 4616cd5 into googleapis:mainNov 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 freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.cla: yesThis 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

@plamut@tswast