We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6afa037 commit 341991dCopy full SHA for 341991d
src/databricks/sql/telemetry/telemetry_client.py
@@ -402,14 +402,7 @@ def initialize_telemetry_client(
402
def get_telemetry_client(session_id_hex):
403
"""Get the telemetry client for a specific connection"""
404
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()
+ return TelemetryClientFactory._clients[session_id_hex]
413
except Exception as e:
414
logger.debug("Failed to get telemetry client: %s", e)
415
return NoopTelemetryClient()
0 commit comments