Conversation
…on tracing is off Add GetAllocationTracingStatus gRPC endpoint that reports whether the connected Vector instance has --allocation-tracing active. vector-top queries this on startup and shows "disabled" in the Memory Used column when tracing is off, instead of misleading zeros. Changes: - proto: add GetAllocationTracingStatus RPC and messages - service.rs: implement the endpoint using is_allocation_tracing_enabled() - client.rs: add get_allocation_tracing_status() method - metrics.rs: query the endpoint on startup, store result in State - state.rs: add allocation_tracing_active field to State - dashboard.rs: show "disabled" when allocation_tracing_active is false Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f61072b to
010b9d3
Compare
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ea36843feb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The `get_allocation_tracing_status` RPC handler unconditionally called `is_allocation_tracing_enabled()`, which only exists behind the `allocation-tracing` feature gate. This broke builds on feature sets that lack it (e.g. `default-msvc`). Add cfg guards so the handler returns `false` when the feature is absent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 29782252a5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Adds a
GetAllocationTracingStatusgRPC endpoint that reports whether the connected Vector instance has--allocation-tracingactive.vector topqueries this on startup ( or when reconnecting) and showsdisabledin theMemory Usedcolumn when tracing is off, instead of misleading zeros.Motivation: This is part of a series of
vector topUI improvements:Previously, when
--allocation-tracingwas not passed, the Memory Used column showed "0 B" for all components with no indication that the feature was simply not enabled.Changes
GetAllocationTracingStatusRPC and messages toobservability.protois_allocation_tracing_enabled()get_allocation_tracing_status()client methodStateallocation_tracing_activefield toStateallocation_tracing_activeis falseVector configuration
Any config works. Compare:
cargo run -- -c <config.yml>thenvector top(shows "disabled")cargo run -- -c <config.yml> --allocation-tracingthenvector top(shows actual bytes)How did you test this PR?
vector topwith and without--allocation-tracingmake check-clippyandmake check-fmtpassChange Type
Is this a breaking change?
Does this PR include user facing changes?
no-changeloglabel to this PR.References
🤖 Generated with Claude Code