Repository navigation
Kernel telemetry design - #250
Conversation
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>
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
🔵 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.
No description provided.