Opentelemetry WARNING: Invalid type NoneType for attribute value. #1140
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
python:3.9.5-slim-buster
3.9.5
21.1.2
google-cloud-bigquery
version:2.32.0
opentelemetry-sdk
verision:1.9.1
Steps to reproduce
Stack trace
In
_set_job_attributes()
function (https://github.com/googleapis/python-bigquery/blob/main/google/cloud/bigquery/opentelemetry_tracing.py#L113) you are passingparent_job_id
argument which might be None. None is invalid attribute type for opentelemetry: https://github.com/open-telemetry/opentelemetry-python/blob/45a2b350e54da9f99a718148d257ee4e28b1d8e4/opentelemetry-api/src/opentelemetry/attributes/__init__.py#L69-L79The text was updated successfully, but these errors were encountered: