Repository navigation
telemetry [10]: enrich platform and startup metrics - #888
Merged
bfjelds (bfjelds) merged 0 commit intoOct 30, 2026
Conversation
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
This was referenced Oct 26, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
Review found no blocking issues in the metadata enrichment, best-effort uptime reporting, or behavior-preserving detection extraction.
No open issues 🎉
What changed in this PR
This PR extends Trident’s telemetry with host platform details and boot uptime, while sharing hypervisor detection with diagnostics.
Changes:
- Add VM status, CPU architecture, and Azure Container Linux detection to platform metadata.
- Report boot uptime on
trident_start, with regression coverage for unavailable clock data. - Extract existing hypervisor detection into
osutilsand document the new telemetry fields.
| File | Description |
|---|---|
| docs/Reference/Telemetry.md | Document platform fields and detection limitations. |
| crates/trident/src/logging/tracestream.rs | Populate platform metadata and add uptime conversion coverage. |
| crates/trident/src/lib.rs | Attach boot uptime to the startup metric. |
| crates/trident/src/diagnostics.rs | Reuse shared hypervisor detection. |
| crates/osutils/src/virt.rs | Provide shared hypervisor and VM detection helpers. |
| Cargo.toml | Enable the nix time feature for clock access. |
Review effort: Balanced
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-platform-startup
branch
from
October 26, 2026 01:33
d7d2b21 to
822880d
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-connection-strings
branch
from
October 26, 2026 01:33
ff6638c to
1092d40
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-platform-startup
branch
from
October 26, 2026 01:53
822880d to
72bd02a
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-platform-startup
branch
from
October 26, 2026 03:15
72bd02a to
acb05d6
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-connection-strings
branch
from
October 26, 2026 03:15
29a81f7 to
ac9f04b
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-platform-startup
branch
from
October 28, 2026 00:06
acb05d6 to
90c5543
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-connection-strings
branch
from
October 28, 2026 00:06
ac9f04b to
29206e3
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-platform-startup
branch
from
October 28, 2026 20:45
90c5543 to
eee7f6c
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-platform-startup
branch
from
October 28, 2026 21:58
eee7f6c to
976ad56
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-connection-strings
branch
from
October 28, 2026 21:58
18d238e to
8061af3
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-platform-startup
branch
from
October 28, 2026 22:58
976ad56 to
b2dd8ed
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-connection-strings
branch
from
October 28, 2026 22:58
8061af3 to
99eb96c
Compare
bfjelds (bfjelds)
merged commit Oct 30, 2026
5e78b22
into
user/bfjelds/mjolnir/telemetry-connection-strings
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-connection-strings
branch
from
October 30, 2026 15:58
99eb96c to
8be95ef
Compare
bfjelds (bfjelds)
force-pushed
the
user/bfjelds/mjolnir/telemetry-platform-startup
branch
from
October 30, 2026 15:58
b2dd8ed to
5e78b22
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add VM, architecture, and ACL fields; report boot uptime on trident_start using shared hypervisor detection.
Rationale
Extracted from #778 to make the telemetry stack easier to review. Combined changes are unchanged.
Validation
cargo test --locked --manifest-path /home/bfjelds/mjolnir-sandbox/trident-telemetry-split778-20261025-1743/Cargo.toml -p trident -p osutils -p trident_api --features trident/grpc-preview,trident/dangerous-options,trident_api/documentation -- command_kind:: logging:: cli:: engine::context:: config::host::tests virt::/home/bfjelds/mjolnir-sandbox.cargo test --locked --manifest-path /home/bfjelds/mjolnir-sandbox/trident-telemetry-split778-20261025-1743/Cargo.toml -p trident -p osutils -p trident_api --features trident/grpc-preview,trident/dangerous-options -- command_kind:: logging:: cli:: engine::context:: config::host::tests virt::Related PRs in stack: