Skip to content

Kernel telemetry design - #250

Merged
jay-xiao446 merged 3 commits into
mainfrom
kernel-telemetry-design
Aug 17, 2026
Merged

jay-xiao446 merged 3 commits into
mainfrom
kernel-telemetry-design

Conversation

@jay-xiao446

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Jay Xiao <jay.xiao@databricks.com>
Signed-off-by: Jay Xiao <jay.xiao@databricks.com>
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.

Verdict: 1 Low

Design-doc-only PR (no code). Its claims about the current codebase check out (empty TelemetryConfig re-exported at crate root, SessionBuilder::telemetry setter, SessionInner ownership). One low-severity consistency note: the proposed public TelemetryConfig pairs #[non_exhaustive] with pub fields while asserting bindings can construct it directly — clarify the constructor/Default story to match the repo's existing config convention.

Replace the reserved config with a real config:

```rust
#[non_exhaustive]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Low — The proposed public TelemetryConfig combines #[non_exhaustive] with all-pub fields, but the Public API section also states "bindings can wire their current user-facing telemetry options into this struct without a new top-level API." These are in tension: #[non_exhaustive] forbids struct-literal construction from outside the defining crate, and the PyO3 (pyo3/) and napi (napi/) bindings are separate crates. Following the repo convention where every #[non_exhaustive] config carries a new()/builder (e.g. ConnectionConfig::new, src/config.rs:92), this struct will also need a public constructor or builder for bindings to populate it — otherwise they cannot build it at all, and the "no new top-level API" claim doesn't hold. Also consider spelling out the Default impl in the doc, since the listed defaults (enabled=false, batch_size=100, …) imply one but the API sketch omits it. Worth clarifying in the doc before implementation so Phase 2/Phase 7 don't hit a construction wall.

@jay-xiao446
jay-xiao446 added this pull request to the merge queue Aug 17, 2026
Merged via the queue into main with commit 1f618dc Aug 17, 2026
17 checks passed

This branch was previously deployed

1 inactive deployment
azure-prod — bb69e431 Deployed Aug 14, 2026 by oss-reviewer-bot[bot] via followup #347
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