Project

General

Profile

Actions

Idea #20613

closed

Reveal googleapiclient retry logs during client construction

Added by Brett Smith 11 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Start date:
06/07/2023
Due date:
Story points:
1.0
Release relationship:
Auto

Description

Until we have a totally sorted story for googleapiclient logs (#20521), we at least want users to be able to see retry logs while the client is being created, so if they, e.g., have a typo in their ARVADOS_API_HOST, they'll see a message about that ASAP.

  • Add a APIClientLogFilter to the Python SDK that emits retry messages at the info level. (The details of this filter may change later in #20521, but the API will remain the same.)
  • Update arvados.api constructor(s) to make sure these logs go somewhere on at least the first client instantiation.
    • Exact strategy TBD depending on whether logging objects are thread-safe, etc. It is acceptable if these logs only appear on the very first instantiation, but that limitation is not required either.
    • Should at least install the filter and ensure googleapiclient logs have some handler, maybe carry one over from arvados if not.
  • Remove the googleapiclient level-setting stuff from a-c-r.
  • Ensure googleapiclient logs appear during a-c-r's client instantiation.
    • The handler copy idea above might be sufficient. If not, this might need input from Peter about the best strategy.

Subtasks 1 (1 open0 closed)

Task #20615: Review 20613-googleapiclient-init-logsIn ProgressPeter Amstutz06/07/2023Actions

Related issues

Related to Arvados - Idea #20521: Python tools emit logs from googleapiclientNewActions
Related to Arvados - Bug #20611: Creating api object hangs when inside crunch containerResolvedPeter AmstutzActions
Actions

Also available in: Atom PDF