Skip to content

Commit 3b4a735

Browse files
committed
fixed statement_id in latency_logger
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent cee49d9 commit 3b4a735

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/databricks/sql/telemetry/latency_logger.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -197,18 +197,6 @@ def wrapper(self, *args, **kwargs):
197197
retry_count=retry_count,
198198
)
199199

200-
# Only append class and method names if we have a statement_id
201-
if statement_id:
202-
statement_id = (
203-
statement_id
204-
+ "_"
205-
+ self.__class__.__name__
206-
+ "_"
207-
+ func.__name__
208-
)
209-
else:
210-
statement_id = self.__class__.__name__ + "_" + func.__name__
211-
212200
telemetry_client.export_sql_latency_log(
213201
latency_ms=duration_ms,
214202
sql_execution_event=sql_exec_event,

0 commit comments

Comments
 (0)