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 d6e5d85 commit f98d22aCopy full SHA for f98d22a
src/databricks/sql/telemetry/latency_logger.py
@@ -158,9 +158,10 @@ def log_latency(statement_type: StatementType = StatementType.NONE):
158
execution context.
159
160
OPTIMIZATIONS APPLIED:
161
- - Uses time.monotonic() instead of time.perf_counter() for faster timing
+ - Uses time.monotonic() for timing measurements
162
- Direct attribute access instead of wrapper extractor objects
163
- Dict-based data collection to minimize object creation overhead
164
+ - Early exit with cached telemetry flag to skip processing when disabled
165
166
Args:
167
statement_type (StatementType): The type of SQL statement being executed.
0 commit comments