Commit 0f4ec12
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 a3c049f commit 0f4ec12
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 | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| |||
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
| 253 | + | |
249 | 254 | | |
250 | 255 | | |
251 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
340 | 342 | | |
341 | | - | |
| 343 | + | |
342 | 344 | | |
343 | 345 | | |
344 | 346 | | |
| |||
351 | 353 | | |
352 | 354 | | |
353 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
354 | 362 | | |
355 | 363 | | |
356 | 364 | | |
| |||
369 | 377 | | |
370 | 378 | | |
371 | 379 | | |
372 | | - | |
| 380 | + | |
| 381 | + | |
373 | 382 | | |
374 | 383 | | |
375 | 384 | | |
| |||
398 | 407 | | |
399 | 408 | | |
400 | 409 | | |
401 | | - | |
402 | | - | |
| 410 | + | |
| 411 | + | |
403 | 412 | | |
404 | 413 | | |
405 | 414 | | |
| |||
0 commit comments