Commit 42540bc
Fix telemetry PR review comments from #325
Three fixes addressing review feedback:
1. Fix documentation typo (sreekanth-db comment)
- DatabricksTelemetryExporter.ts:94
- Changed "TelemetryFrontendLog" to "DatabricksTelemetryLog"
2. Add proxy support (jadewang-db comment)
- DatabricksTelemetryExporter.ts:exportInternal()
- Get HTTP agent from connection provider
- Pass agent to fetch for proxy support
- Follows same pattern as CloudFetchResultHandler and DBSQLSession
- Supports http/https/socks proxies with authentication
3. Fix flush timer to prevent rate limiting (sreekanth-db comment)
- MetricsAggregator.ts:flush()
- Reset timer after manual flushes (batch size, terminal errors)
- Ensures consistent 30s spacing between exports
- Prevents rapid successive flushes (e.g., batch at 25s, timer at 30s)
All changes follow existing driver patterns and maintain backward compatibility.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6110797 commit 42540bc
File tree
2 files changed
+20
-6
lines changed- lib/telemetry
2 files changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
237 | 241 | | |
238 | 242 | | |
239 | 243 | | |
| |||
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| 249 | + | |
245 | 250 | | |
246 | 251 | | |
247 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
299 | 301 | | |
300 | | - | |
| 302 | + | |
301 | 303 | | |
302 | 304 | | |
303 | 305 | | |
| |||
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
315 | 323 | | |
316 | 324 | | |
317 | 325 | | |
| |||
330 | 338 | | |
331 | 339 | | |
332 | 340 | | |
333 | | - | |
| 341 | + | |
| 342 | + | |
334 | 343 | | |
335 | 344 | | |
336 | 345 | | |
| |||
359 | 368 | | |
360 | 369 | | |
361 | 370 | | |
362 | | - | |
363 | | - | |
| 371 | + | |
| 372 | + | |
364 | 373 | | |
365 | 374 | | |
366 | 375 | | |
| |||
0 commit comments