GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-python-connector
Improve user agent logic
Aberta
Ninguém assumiu esta issue ainda.
priority: p2
type: cleanup
- Linguagem predominante
- Python
- Estrelas
- 344
- Forks
- 89
- Merge médio
- 5h 33min
- PRs com merge (30d)
- 2
Descrição
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
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Avaliação
Esta issue ainda não foi avaliada.