Skip to content

telemetry [10]: enrich platform and startup metrics - #888

Merged
bfjelds (bfjelds) merged 0 commit into
user/bfjelds/mjolnir/telemetry-connection-stringsfrom
user/bfjelds/mjolnir/telemetry-platform-startup
Oct 30, 2026
Merged

bfjelds (bfjelds) merged 0 commit into
user/bfjelds/mjolnir/telemetry-connection-stringsfrom
user/bfjelds/mjolnir/telemetry-platform-startup

Conversation

@bfjelds

@bfjelds bfjelds (bfjelds) commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

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

Source Command or check Result Notes
Agent 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:: Passed 103 targeted unit tests; run from /home/bfjelds/mjolnir-sandbox.
Agent Git tree comparison Passed Final split tip exactly matches original #778; restacked #779/#781 trees unchanged.
Agent 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:: Failed Resolved: API unit tests require the existing documentation feature; corrected command above passed without source changes.
Agent VM functional tests Not run Require a VM; only host-safe unit tests were run.
CI Pipeline checks Not run Not evaluated as part of this split; results above are local.

Related PRs in stack:

@azure-pipelines

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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 osutils and 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 (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from d7d2b21 to 822880d Compare October 26, 2026 01:33
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-connection-strings branch from ff6638c to 1092d40 Compare October 26, 2026 01:33
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 26, 2026 01:39
@bfjelds bfjelds (bfjelds) changed the title telemetry: enrich platform and startup metrics telemetry [10]: enrich platform and startup metrics Oct 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes preserve diagnostic detection behavior and keep telemetry failures best-effort, with no identified blocking issues.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from 822880d to 72bd02a Compare October 26, 2026 01:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are additive, preserve existing diagnostic detection behavior, and keep telemetry collection best-effort, with no unresolved blocking findings.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from 72bd02a to acb05d6 Compare October 26, 2026 03:15
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-connection-strings branch from 29a81f7 to ac9f04b Compare October 26, 2026 03:15
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 26, 2026 03:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The additive telemetry changes preserve diagnostic detection behavior and handle collection failures without introducing any identified blocking issues.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from acb05d6 to 90c5543 Compare October 28, 2026 00:06
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-connection-strings branch from ac9f04b to 29206e3 Compare October 28, 2026 00:06
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 28, 2026 00:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the telemetry metadata and boot-uptime changes.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from 90c5543 to eee7f6c Compare October 28, 2026 20:45
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 28, 2026 20:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are identified in the supplied review evidence.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from eee7f6c to 976ad56 Compare October 28, 2026 21:58
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-connection-strings branch from 18d238e to 8061af3 Compare October 28, 2026 21:58
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 28, 2026 22:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block approval of the telemetry and shared hypervisor-detection changes.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from 976ad56 to b2dd8ed Compare October 28, 2026 22:58
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-connection-strings branch from 8061af3 to 99eb96c Compare October 28, 2026 22:58
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 28, 2026 23:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the telemetry enhancements and shared virtualization detection changes.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) merged commit 5e78b22 into user/bfjelds/mjolnir/telemetry-connection-strings Oct 30, 2026
@bfjelds
bfjelds (bfjelds) removed this pull request from stack #895 October 30, 2026 15:58
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-connection-strings branch from 99eb96c to 8be95ef Compare October 30, 2026 15:58
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from b2dd8ed to 5e78b22 Compare October 30, 2026 15:58
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.

2 participants