GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-python-connector

Improve user agent logic

Đang mở
#1,020 0 bình luận 0 reaction 1 người được giao Được giao cho @kgala2 Xem trên GitHub
priority: p2 type: cleanup
Ngôn ngữ chính
Python
Star
344
Fork
89
Merge trung bình
5 giờ 33 phút
Pull request đã merge (30 ngày)
2

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.