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

Too noise logging about telemetry #441

Closed

Description

@mik-laj

Hello,

In the Apache Airflow project, we use the BigQuery library, but recently we've started to see annoying log message when the library is loaded. It is enough that the library is loaded and there is an message every time.

In my opinion, this message should be of a lower level (DEBUG) so that it is not displayed much less often or is displayed only when the client is initialized.

import logging
logging.basicConfig(level=logging.INFO)

from google.cloud import bigquery

Output:

INFO:google.cloud.bigquery.opentelemetry_tracing:This service is instrumented using OpenTelemetry. OpenTelemetry could not be imported; please add opentelemetry-api and opentelemetry-instrumentation packages in order to get BigQuery Tracing data.

Related issue: apache/airflow#13131

CC: @tswast

Activity

  1. mik-laj commented on Dec 18, 2020

    @mik-laj
    Author

    @tswast this problem is in part related to the implementation of your AIP. https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-8+Split+Providers+into+Separate+Packages+for+Airflow+2.0
    Now we need to load a few more classes to be able to read the attributes of some classes, which unfortunately leads to the BigQuery client being loaded as well.

  2. added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    and removed
    triage meI really want to be triaged.
    on Dec 21, 2020
  3. self-assigned this
    on Dec 21, 2020
  4. tswast commented on Dec 21, 2020

    @tswast
    Contributor

    Sent #442 to drop the logging level to DEBUG

  5. tswast commented on Dec 21, 2020

    @tswast
    Contributor

    Reading the Airflow issue, I think the problem is that there is any sort of message at import time. I'll see if there's a different way we can show this warning when opentelemetry is specifically requested. Or perhaps just remove it.

  6. tswast commented on Jan 11, 2021

    @tswast
    Contributor

    This is fixed in google-cloud-bigquery==2.6.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions