Skip to content

Conversation

@shivam2680
Copy link
Collaborator

@shivam2680 shivam2680 commented Nov 28, 2025

Description

Add metric view param to telemetry

Testing

Unit test

Additional Notes to the Reviewer

NO_CHANGELOG=true

Copy link
Collaborator

@samikshya-db samikshya-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. But, let's merge this only after telemetry proto has the enable_metric_view_metadata field. [internal link]

Copilot AI review requested due to automatic review settings December 1, 2025 14:09
@shivam2680 shivam2680 enabled auto-merge (squash) December 1, 2025 14:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds telemetry tracking for the metric view metadata feature by including the enable_metric_view_metadata parameter in connection telemetry data.

  • Adds enableMetricViewMetadata field to DriverConnectionParameters model
  • Updates telemetry helper to populate the new field from connection context
  • Includes the field in the string representation for debugging

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/main/java/com/databricks/jdbc/telemetry/TelemetryHelper.java Populates the new enableMetricViewMetadata field in telemetry data from connection context
src/main/java/com/databricks/jdbc/model/telemetry/DriverConnectionParameters.java Adds enableMetricViewMetadata boolean field with setter method and includes it in toString output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shivam2680 shivam2680 merged commit bfefa91 into main Dec 1, 2025
12 of 13 checks passed
@shivam2680 shivam2680 deleted the shivam2680/metric-view-telemetry branch December 1, 2025 14:19
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.

3 participants