Skip to content

Commit 4b6ace0

Browse files
committed
fix in telemetry extractor
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent 1163ebe commit 4b6ace0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/databricks/sql/telemetry/latency_logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def get_retry_count(self) -> int:
6666
return len(self.thrift_backend.retry_policy.history)
6767
return 0
6868

69-
def get_statement_type(self: str) -> StatementType:
69+
def get_statement_type(self) -> StatementType:
7070
# TODO: Implement this
7171
return StatementType.SQL
7272

@@ -92,7 +92,7 @@ def get_execution_result(self) -> ExecutionResultFormat:
9292
return ExecutionResultFormat.INLINE_ARROW
9393
return ExecutionResultFormat.FORMAT_UNSPECIFIED
9494

95-
def get_statement_type(self: str) -> StatementType:
95+
def get_statement_type(self) -> StatementType:
9696
# TODO: Implement this
9797
return StatementType.SQL
9898

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ def initialize_telemetry_client(
400400
):
401401
"""Initialize a telemetry client for a specific connection if telemetry is enabled"""
402402
try:
403+
403404
with TelemetryClientFactory._lock:
404405
TelemetryClientFactory._initialize()
405406

0 commit comments

Comments
 (0)