Skip to content

telemetry [6]: enrich platform and startup metrics - #912

Draft
bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/mjolnir/telemetry-servicing-idfrom
user/bfjelds/mjolnir/telemetry-platform-startup
Draft

bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/mjolnir/telemetry-servicing-idfrom
user/bfjelds/mjolnir/telemetry-platform-startup

Conversation

@bfjelds

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

Copy link
Copy Markdown
Member

Replaces #888; its review history remains there.

Summary

  • Add VM, architecture and ACL metadata; report boot uptime on trident_start using shared hypervisor detection.
  • Introduce sink-neutral telemetry and correlation-ID documentation.

Validation

At 5e78b226300e72aa68293d989bbcc112715d1bdb on 2026-10-30:

  • cargo fmt -- --check: passed.
  • All-target compilation and strict Clippy (-D warnings): passed with grpc-preview,dangerous-options,trident_api/documentation,functional-test,pytest-generator.
  • Focused host-safe unit tests: passed without enabling functional-test.
  • VM functional tests were not run as part of this local validation. No CI result is asserted here.

Stack

Native stack 913, position 6/20. Positions 1-14 provide sink-neutral telemetry; positions 15-20 add telemetry preferences, shared transport, AppInsights and build/image/package integration.

Full-stack pipeline branch: user/bfjelds/telemetry-default-optin (#910).

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.

@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 30, 2026 16:11

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.

🟡 Changes recommended

The telemetry documentation misstates metrics retention and diagnose behavior, and incorrectly implies journald output includes enriched records’ metadata and correlation IDs.

2 open issues
What changed in this PR

Enriches Trident’s telemetry with host details and boot uptime, while sharing virtualization detection with diagnostics.

Changes:

  • Adds VM, architecture, and ACL metadata to telemetry records.
  • Reports boot uptime on trident_start, with a best-effort fallback.
  • Documents telemetry outputs and correlation-ID lifecycles.
File Description
docs/​Reference/​Telemetry.md Documents local outputs, metadata, and correlation IDs.
crates/​trident/​src/​logging/​tracestream.rs Adds host metadata, uptime conversion, and tests.
crates/​trident/​src/​lib.rs Includes boot uptime in the startup metric.
crates/​trident/​src/​diagnostics.rs Reuses shared hypervisor detection.
crates/​osutils/​src/​virt.rs Provides shared DMI-based virtualization helpers.
Cargo.toml Enables nix clock APIs through the time feature.

Review effort: Balanced

Comment thread docs/Reference/Telemetry.md Resolved
Comment thread docs/Reference/Telemetry.md Resolved
@bfjelds
bfjelds (bfjelds) removed this pull request from stack #913 October 30, 2026 17:07
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from 5e78b22 to 36d16d8 Compare October 30, 2026 17:07
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 30, 2026 17:17

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 remain for the telemetry metadata and boot-uptime changes.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from 36d16d8 to 2c3f034 Compare October 30, 2026 18:24
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 30, 2026 18:28

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 remain for the telemetry metadata, boot-uptime, 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 2c3f034 to 5ccfa42 Compare October 30, 2026 20:14
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 30, 2026 20:30

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 telemetry metadata and boot-uptime changes have no active review issues blocking approval.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from 5ccfa42 to 03b334e Compare October 30, 2026 20:46
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 30, 2026 22:01
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from 03b334e to 2e45b1c Compare October 30, 2026 22:02

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

Rebase onto agent configuration read-error handling.
Apply approved telemetry review fixes at their owning layer.

Original layer head: 5e78b22

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 43cb811b-f191-4d90-852f-e3373041ca11
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-platform-startup branch from 2e45b1c to 1e0b6fb Compare October 30, 2026 23:48
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 30, 2026 23: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 reported for the telemetry metadata and boot-uptime changes.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
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