Remove setup_request_id fallback in generated packages when google-api-core >= 2.26.0

オープン
#17,813 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hebaalazzeh がすでに取り組んでいます。

2026年7月21日 から。

評価

この issue はまだ評価されていません。

説明

Overview

During the GAPIC request-id deduplication effort (centralizing request ID generation into google.api_core.gapic_v1.requests.setup_request_id), a backward-compatibility fallback module (_compat.py) was introduced in generated client packages to maintain compatibility with older versions of google-api-core.

Once google-api-core >= 2.26.0 (or the version containing setup_request_id) becomes the minimum required version across all generated client packages, this fallback can be removed.

Tasks

  • Remove _compat.py.j2 template from gapic-generator-python.
  • Update client.py.j2 and async_client.py.j2 to import setup_request_id directly from google.api_core.gapic_v1.requests.
  • Remove _compat.py files from tests/integration/goldens/.
主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
2日 7時間
マージ済み PR(30日)
173

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleapis/google-cloud-python のほかの issue

googleapis/google-cloud-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。