Skip to content

Commit 341991d

Browse files
committed
get telemetry client
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent 6afa037 commit 341991d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -402,14 +402,7 @@ def initialize_telemetry_client(
402402
def get_telemetry_client(session_id_hex):
403403
"""Get the telemetry client for a specific connection"""
404404
try:
405-
if session_id_hex in TelemetryClientFactory._clients:
406-
return TelemetryClientFactory._clients[session_id_hex]
407-
else:
408-
logger.debug(
409-
"Telemetry client not initialized for connection %s",
410-
session_id_hex,
411-
)
412-
return NoopTelemetryClient()
405+
return TelemetryClientFactory._clients[session_id_hex]
413406
except Exception as e:
414407
logger.debug("Failed to get telemetry client: %s", e)
415408
return NoopTelemetryClient()

0 commit comments

Comments
 (0)