Skip to content

Commit 93aca5d

Browse files
authored
Minor - Adding userAgent to botocore config (#603)
1 parent bd5526e commit 93aca5d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

awswrangler/_utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import pandas as pd
1717

1818
from awswrangler import _config, exceptions
19+
from awswrangler.__metadata__ import __version__
1920
from awswrangler._config import apply_configs
2021

2122
_logger: logging.Logger = logging.getLogger(__name__)
@@ -68,7 +69,12 @@ def default_botocore_config() -> botocore.config.Config:
6869
mode: Optional[str] = os.getenv("AWS_RETRY_MODE")
6970
if mode:
7071
retries_config["mode"] = mode
71-
return botocore.config.Config(retries=retries_config, connect_timeout=10, max_pool_connections=10)
72+
return botocore.config.Config(
73+
retries=retries_config,
74+
connect_timeout=10,
75+
max_pool_connections=10,
76+
user_agent_extra=f"awswrangler/{__version__}",
77+
)
7278

7379

7480
def _get_endpoint_url(service_name: str) -> Optional[str]:

0 commit comments

Comments
 (0)