Skip to content

Commit c959525

Browse files
committed
added TODO for common http client
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent f77d3df commit c959525

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,10 @@ def __init__(
182182
delay_default=1.0,
183183
force_dangerous_codes=[],
184184
)
185-
self._session = requests.Session()
185+
self._session = requests.Session() # TODO: Use DatabricksHttpClient instead (unify all http clients)
186186
adapter = TelemetryHTTPAdapter(max_retries=self._telemetry_retry_policy)
187187
self._session.mount("https://", adapter)
188+
self._session.mount("http://", adapter)
188189

189190
def _export_event(self, event):
190191
"""Add an event to the batch queue and flush if batch is full"""

0 commit comments

Comments
 (0)