[PECOBLR-1143] Implement telemetry Phase 4-5: Export infrastructure and opt-in configuration #319
+976
−57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements Phases 4-5 of the telemetry system for the Databricks SQL Go driver.
Stack: Part 1 of 2
Phase 4: Export Infrastructure ✅
New file:
exporter.go(192 lines)telemetryExporterwith circuit breaker integration/api/2.0/telemetry-extendpointshouldExportToDatabricks()telemetryPayload,exportedMetric)New file:
exporter_test.go(448 lines)Phase 5: Opt-In Configuration Integration ✅
Updated:
config.go(+48 lines)isTelemetryEnabled()with 5-level priority logicfeatureFlagCacheUpdated:
config_test.go(+230 lines)Priority Logic:
forceEnableTelemetry=true→ always enabledenableTelemetry=false→ always disabledenableTelemetry=true+ server feature flag checkChanges
Total: +976 insertions, -57 deletions
Testing
All 70+ tests passing ✅ (2.017s)
Related Issues
Checklist