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

fix: validate opentelemetry span job attributes have values - #1327

Merged
shollyman merged 4 commits into
googleapis:mainfrom
shollyman:otel-fix
Aug 29, 2022
Merged

fix: validate opentelemetry span job attributes have values#1327
shollyman merged 4 commits into
googleapis:mainfrom
shollyman:otel-fix

Conversation

@shollyman

@shollymanshollyman commented Aug 25, 2022

Copy link
Copy Markdown
Contributor

There are several job properties that are optional. Existing
opentelemetry instrumentation disallows span attribute keys without
appropriate values, so this change validates value presence before
propagating.

Fixes: #1140

There are several job properties that are optional. Existing
opentelemetry instrumentation disallows span attribute keys without
appropriate values, so this change validates field presence before
propagating.
@product-auto-labelproduct-auto-labelBot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery API. labels Aug 25, 2022
@shollyman

Copy link
Copy Markdown
ContributorAuthor

prerelease failures appear unrelated to this PR.

@shollyman
shollyman marked this pull request as ready for review August 25, 2022 16:58
@shollyman
shollyman requested review from a team, aribray, chalmerlowe and prash-mi and removed request for prash-miAugust 25, 2022 16:58
@partheaparthea changed the title fix(bigquery): sanity check opentelemetry span attributes for jobsfix(bigquery): quick check opentelemetry span attributes for jobsAug 27, 2022
@partheaparthea changed the title fix(bigquery): quick check opentelemetry span attributes for jobsfix: quick check opentelemetry span attributes for jobsAug 27, 2022
@parthea

Copy link
Copy Markdown
Contributor

I've opened googleapis/synthtool#1556 to fix the pre-release failures

@shollymanshollyman changed the title fix: quick check opentelemetry span attributes for jobsfix: validate opentelemetry span job attributes have valuesAug 29, 2022

@chalmerlowechalmerlowe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@shollyman

Copy link
Copy Markdown
ContributorAuthor

Merging

@shollyman
shollyman merged commit 8287af1 into googleapis:mainAug 29, 2022
@shollyman
shollyman deleted the otel-fix branch August 29, 2022 18:59
@release-pleaserelease-pleaseBot mentioned this pull request Aug 29, 2022
abdelmegahedgoogle pushed a commit to abdelmegahedgoogle/python-bigquery that referenced this pull request Apr 17, 2023
…is#1327)
fix: validate opentelemetry span job attributes have values
There are several job properties that are optional. Existing
opentelemetry instrumentation disallows span attribute keys without
appropriate values, so this change validates field presence before
propagating.
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.size: sPull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opentelemetry WARNING: Invalid type NoneType for attribute value.

3 participants

@shollyman@parthea@chalmerlowe