Skip to content

telemetry [11]: report effective servicing feature usage - #889

Draft
bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/mjolnir/telemetry-platform-startupfrom
user/bfjelds/mjolnir/telemetry-effective-features
Draft

bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/mjolnir/telemetry-platform-startupfrom
user/bfjelds/mjolnir/telemetry-effective-features

Conversation

@bfjelds

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

Copy link
Copy Markdown
Member

Description

Trace current install/update features from EngineContext without treating default values as unspecified or reviving removed features.

Rationale

Extracted from #778 to make the telemetry stack easier to review. Follow-up review fixes align feature telemetry with the current servicing specification.

Validation

Follow-up: 16 EngineContext unit tests passed on the revised layer. The original split checks below predate these fixes.

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 106 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 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.

🟡 Changes recommended

The blanket default-value fallback reports removed extensions and omitted scripts as active features.

1 open issue
What changed in this PR

Moves feature-usage telemetry into EngineContext so install and update metrics can consider both current and prior configuration.

Changes:

  • Emits feature metrics during clean-install staging and updates that require staging.
  • Adds default-value fallback to prior configuration, while keeping internal parameters invocation-specific.
  • Relocates telemetry tests and adds update fallback coverage.
File Description
crates/​trident/​src/​lib.rs Removes startup-time feature tracing.
crates/​trident/​src/​engine/​update.rs Emits feature metrics after selecting the servicing type.
crates/​trident/​src/​engine/​context/​mod.rs Adds context-based feature tracing and tests.
crates/​trident/​src/​engine/​clean_install.rs Emits feature metrics during install staging.
crates/​trident_api/​src/​config/​host/​mod.rs Removes configuration-owned telemetry and its tests.

Review effort: Balanced

Comment thread crates/trident/src/engine/context/mod.rs Outdated
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-effective-features branch from 7d1fadb to 4fc7fc6 Compare October 26, 2026 01:33
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 26, 2026 01:39

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 focused telemetry relocation preserves metric fields, addresses the prior stale-feature issue, and has no unresolved blocking findings.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@bfjelds bfjelds (bfjelds) changed the title telemetry: report effective servicing feature usage telemetry [11]: report effective servicing feature usage Oct 26, 2026
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-effective-features branch from 4fc7fc6 to eeb442d 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 focused relocation preserves metric fields, addresses the prior stale-configuration issue, and has no identified blocking issues.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-effective-features branch from eeb442d to 9c3af7e 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 focused relocation preserves metric fields, addresses the prior stale-settings issue, and includes regression coverage with no identified blocking issues.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-effective-features branch from 9c3af7e to 44454a5 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 remain for the relocation of feature-usage telemetry to install/update staging.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-effective-features branch from 44454a5 to d66b6a6 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 remain for the feature-usage telemetry changes.

No open issues 🎉

Review effort: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-effective-features branch from d66b6a6 to bc1eb7d 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 were identified for the move to engine-owned feature-usage telemetry.

No open issues 🎉

Review effort: Balanced

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d0e7cadc-8f44-443f-affe-6ce8e856a218

Copilot-Session: 43cb811b-f191-4d90-852f-e3373041ca11
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-effective-features branch from bc1eb7d to 9eac5d6 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

The review reports no active issues with the engine-owned feature telemetry 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