GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-python-connector

Improve user agent logic

オープン
#1,020 コメント 0 件 リアクション 0 件 担当者 1 名 @kgala2 に割り当て済み GitHub で見る
priority: p2 type: cleanup
主要言語
Python
スター
344
フォーク
89
平均マージ
5時間 33分
マージ済み PR(30日)
2

説明

User agent currently is set during the first connection call. Subsequent calls have no way of updating the custom user agent. Aka if you create a connector and use it with many drivers or many custom user agents only the ones used on the first connect will be set.

Instead we should keep a `set()` of user agents and add as we go and update the client.

https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/blob/bb044277e58475b3c1dfc2a497935aa97c8f2e4d/google/cloud/sql/connector/connector.py#L215-L220

コントリビューションガイド

コントリビューションガイドを開く

評価

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

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

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