Skip to content

Commit f98d22a

Browse files
committed
docs: Update timing function description - remove performance claim
1 parent d6e5d85 commit f98d22a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/databricks/sql/telemetry/latency_logger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@ def log_latency(statement_type: StatementType = StatementType.NONE):
158158
execution context.
159159
160160
OPTIMIZATIONS APPLIED:
161-
- Uses time.monotonic() instead of time.perf_counter() for faster timing
161+
- Uses time.monotonic() for timing measurements
162162
- Direct attribute access instead of wrapper extractor objects
163163
- Dict-based data collection to minimize object creation overhead
164+
- Early exit with cached telemetry flag to skip processing when disabled
164165
165166
Args:
166167
statement_type (StatementType): The type of SQL statement being executed.

0 commit comments

Comments
 (0)