Skip to content

Conversation

Jade Wang and others added 2 commits January 22, 2026 01:54
Add centralized tag definitions with export scope annotations for
controlling what data is exported to Databricks telemetry service.

Changes:
- TelemetryTagAttribute class with TagName, ExportScope, Description,
  Required properties
- TagExportScope enum with None, ExportLocal, ExportDatabricks, ExportAll
  flags for fine-grained export control
- TelemetryEventType enum for ConnectionOpen, StatementExecution, Error
- ConnectionOpenEvent with workspace.id, session.id, driver.version,
  driver.os, driver.runtime, feature.cloudfetch, feature.lz4 tags
  (excludes sensitive server.address from Databricks export)
- StatementExecutionEvent with statement.id, session.id, result.format,
  result.chunk_count, and other metrics (excludes db.statement)
- ErrorEvent with error.type, error.message, error.http_status
  (excludes error.stack_trace from Databricks export)
- TelemetryTagRegistry.ShouldExportToDatabricks() for tag filtering
- Comprehensive unit tests (31 tests covering all functionality)

This enables explicit control over which Activity tags are exported to
Databricks telemetry service vs local diagnostics only.

Co-Authored-By: Claude <noreply@anthropic.com>
Mark WI-1.2 Tag Definition System as completed with implementation notes
and key design decisions documented.

Co-Authored-By: Claude <noreply@anthropic.com>
@jadewang-db jadewang-db merged commit d2d4c54 into main Jan 23, 2026
17 of 20 checks passed
@jadewang-db jadewang-db deleted the stack/wi-1.2-tag-definition-system branch January 23, 2026 21:42
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