Skip to content

fix: address review feedback on telemetry infrastructure (#325 follow-up)#361

Closed
samikshya-db wants to merge 2 commits intomainfrom
telemetry-2-review-fixes
Closed

fix: address review feedback on telemetry infrastructure (#325 follow-up)#361
samikshya-db wants to merge 2 commits intomainfrom
telemetry-2-review-fixes

Conversation

@samikshya-db
Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #325. Addresses all pending review feedback on the telemetry infrastructure layer.

  • Shared HTTP stack: DatabricksTelemetryExporter.sendRequest and FeatureFlagCache.fetchFeatureFlag now route through connectionProvider.getRetryPolicy().invokeWithRetry(), matching the CloudFetchResultHandler pattern — removes bespoke retry loops and raw node-fetch calls
  • CircuitBreaker HALF_OPEN race: concurrent probe admission is now a single synchronous check-and-set (tryAdmit), preventing multiple simultaneous probes
  • MetricsAggregator.close() flush race: close() is now async; a closing flag suppresses intermediate batch-triggered fire-and-forget flushes so a single await this.flush(false) drains all remaining metrics cleanly
  • telemetryUtils: simplified to a minimal SSRF-safe URL builder; removed unused helpers
  • Types / exports / tests: cleaned up across all telemetry modules

Test plan

  • All telemetry unit tests pass (143/143)
  • TypeScript compiles without errors across all telemetry modules
  • coverage/ excluded from git tracking

This pull request was AI-assisted by Isaac.

…-up)

- Route DatabricksTelemetryExporter and FeatureFlagCache HTTP through shared connection stack (connectionProvider.getRetryPolicy().invokeWithRetry) matching CloudFetchResultHandler pattern; remove bespoke retry loops
- Fix HALF_OPEN concurrent-probe race in CircuitBreaker with atomic tryAdmit check-and-set
- Fix MetricsAggregator.close() flush race: async close with closing flag suppresses intermediate batch flushes; single awaited flush drains remaining metrics
- Simplify telemetryUtils to minimal SSRF-safe URL builder; remove unused helpers
- Clean up types, exports, and test coverage across telemetry modules

Co-authored-by: samikshya-chand_data
Co-authored-by: samikshya-chand_data
@github-actions
Copy link
Copy Markdown

Thanks for your contribution! To satisfy the DCO policy in our contributing guide every commit message must include a sign-off message. One or more of your commits is missing this message. You can reword previous commit messages with an interactive rebase (git rebase -i main).

@samikshya-db samikshya-db deleted the telemetry-2-review-fixes branch April 21, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant