Skip to content

feat(telemetry): add statement execution telemetry - #270

Closed
jay-xiao446 wants to merge 1 commit into
kernel-telemetry-phase-7from
jay-xiao446/stack/kernel-telemetry-phase-3
Closed

jay-xiao446 wants to merge 1 commit into
kernel-telemetry-phase-7from
jay-xiao446/stack/kernel-telemetry-phase-3

Conversation

@jay-xiao446

Copy link
Copy Markdown
Collaborator

Summary

Adds Phase 3 statement execution telemetry on top of the Phase 7 binding configuration stack.

This wires statement lifecycle telemetry through the existing telemetry runtime so sync and async statement execution emit terminal operation events with sanitized error details, statement metadata, result format/compression hints, retry count, and async poll counters.

flowchart TD
    Session[Session / SessionInner] --> Statement[Statement]
    Statement --> Observer[StatementTelemetry observer]
    Observer --> Context[StatementTelemetryContext]
    Context --> ConnectionTelemetry[ConnectionTelemetry]
    ConnectionTelemetry --> Lease[TelemetryClientLease]
    Lease --> Client[TelemetryClient]
    Client --> Exporter[Databricks telemetry exporter]
Loading
sequenceDiagram
    participant App as Client app
    participant Stmt as Statement
    participant Obs as StatementTelemetry
    participant Sea as SEA transport
    participant Tel as ConnectionTelemetry

    App->>Stmt: execute / submit / execute_direct
    Stmt->>Obs: create observer
    Stmt->>Sea: execute statement
    Sea-->>Stmt: result or error
    Stmt->>Obs: record result metadata
    Obs->>Tel: emit terminal statement event
Loading

Validation

  • cargo +stable fmt --all --check
  • cargo test statement_ --lib --locked
  • cargo test --lib --locked
  • cargo clippy --all-targets --locked -- -D warnings
  • git diff --check

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

Copy link
Copy Markdown
Collaborator Author

Closing in favor of the correctly shaped git-stack PR #272. #270 was created from the namespaced head branch and based on phase 7 directly, so it did not match this repo's stack PR convention.

@jay-xiao446
jay-xiao446 deleted the jay-xiao446/stack/kernel-telemetry-phase-3 branch August 19, 2026 21:01

This branch was previously deployed

1 inactive deployment
azure-prod — 725370b1 Deployed Aug 19, 2026 by jay-xiao446 via v0 TLS (mitmproxy) #475
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