Skip to content

feat(telemetry): identify kernel driver mode - #341

Closed
jay-xiao446 wants to merge 1 commit into
mainfrom
feat/telemetry-kernel-driver-mode
Closed

jay-xiao446 wants to merge 1 commit into
mainfrom
feat/telemetry-kernel-driver-mode

Conversation

@jay-xiao446

Copy link
Copy Markdown
Collaborator

Summary

  • add KERNEL to the telemetry DriverMode model
  • emit driver_connection_params.mode = "KERNEL" for kernel-created sessions
  • add a regression test for the runtime-populated mode

This distinguishes traffic that uses the SQL Kernel from existing drivers that call the Statement Execution API directly and report SEA, including the Python connector today and JDBC in the future.

flowchart LR
    Python[Python driver] --> Kernel[SQL Kernel]
    Kernel -->|mode = KERNEL| Telemetry[Driver telemetry]
    DirectSEA[Existing direct SEA client] -->|mode = SEA| Telemetry
    JDBC[JDBC future kernel path] --> Kernel
Loading

Validation

  • cargo +stable fmt --all -- --check
  • cargo test telemetry --lib --locked (50 passed)
  • cargo clippy --all-targets -- -D warnings
  • cargo test --locked (full unit, integration, and doc-test suite passed; live E2E tests remain ignored as configured)

Schema coordination

The current server source-of-truth proto at proto/logs/frontend/oss-sql-driver-telemetry/sql_driver_telemetry.proto declares only THRIFT and SEA. The server schema must add KERNEL before rollout so ingestion accepts the new enum value.


This PR was created with GitHub MCP.

Signed-off-by: Jay Xiao <jay.xiao@databricks.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ No issues identified by the review bot.

@jay-xiao446

Copy link
Copy Markdown
Collaborator Author

This branch was previously deployed

1 inactive deployment
azure-prod — e9547518 Deployed Sep 15, 2026 by jay-xiao446 via review #585
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant