Skip to content

telemetry [14]: remove asset_id - #779

Open
bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/mjolnir/telemetry-servicing-outcomesfrom
user/bfjelds/mjolnir/installation-servicing-id
Open

bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/mjolnir/telemetry-servicing-outcomesfrom
user/bfjelds/mjolnir/installation-servicing-id

Conversation

@bfjelds

@bfjelds bfjelds (bfjelds) commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Remove the DMI product UUID asset_id from metrics, CI metric extraction and telemetry documentation.
  • Keep installation_id, servicing_id and operation_id correlation.

Validation

At c7313c8d4bef4b2d0a96f08d6f80314f2513b302 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.
  • Targeted daemon and gRPC-client unit tests: passed.
  • VM functional tests were not run as part of this local validation. No CI result is asserted here.

Stack

Native stack 913, position 14/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) changed the title telemetry: remove asset_id, rename correlation_id to installation_id (install-time creation), add persistent servicing_id telemetry: remove asset_id, rename correlation_id to installation_id, add persistent servicing_id Sep 4, 2026
--filepath "$METRICS_FILE" \
--mapping "$KUSTO_TABLE_MAPPING"
--mapping "$KUSTO_TABLE_MAPPING" \
--ignore-schema

@bfjelds bfjelds (bfjelds) Sep 5, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

adding ignore-schema because we removed asset_id which is a required field in the telemetry schema.

other options would be:

  • remove asset_id from required list in schema
  • use asset_id as installation_id

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/installation-servicing-id branch 2 times, most recently from 1599407 to c96c0af Compare September 5, 2026 01:36
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot September 5, 2026 01:38

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

Install finalization overwrites the staged servicing ID, breaking cross-invocation correlation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates telemetry identifiers to improve privacy and correlate servicing operations across invocations.

Changes:

  • Removes hardware-derived asset_id and renames correlation_id to installation_id.
  • Persists and emits per-servicing-operation servicing_id values.
  • Adjusts telemetry documentation and Kusto ingestion.
File summaries
File Description
docs/Reference/Agent-Configuration.md Documents telemetry identifiers.
crates/trident/src/main.rs Passes the installation-ID handle to App Insights.
crates/trident/src/logging/tracestream.rs Emits installation and servicing IDs.
crates/trident/src/logging/operation_context.rs Tracks servicing IDs per invocation.
crates/trident/src/logging/appinsights.rs Adds identifiers to App Insights events.
crates/trident/src/lib.rs Creates and restores identifiers during servicing.
crates/trident/src/engine/update.rs Creates servicing IDs for updates.
crates/trident/src/engine/manual_rollback/mod.rs Handles rollback servicing IDs.
crates/trident/src/datastore.rs Persists installation and servicing IDs.
.pipelines/templates/stages/testing_common/scripts/upload_metrics.sh Uploads metrics without schema validation.
Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread crates/trident/src/lib.rs Outdated
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/installation-servicing-id branch from c96c0af to bcab5b0 Compare September 5, 2026 16:31
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot September 5, 2026 16:32

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

Servicing IDs are assigned before rollback eligibility is known and are not restored for post-reboot commit metrics.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 11/11 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread crates/trident/src/engine/manual_rollback/mod.rs Outdated
Comment thread crates/trident/src/lib.rs Outdated
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/installation-servicing-id branch from bcab5b0 to 941e873 Compare September 5, 2026 17:02
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot September 5, 2026 19: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.

🟡 Changes recommended

The core servicing-ID serialization path lacks sink-level regression coverage.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 11/11 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread crates/trident/src/logging/tracestream.rs Outdated
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/installation-servicing-id branch from 941e873 to 6f8944b Compare September 5, 2026 19:58
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot September 5, 2026 20:07

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 updated diff addresses the prior lifecycle and serialization gaps, with no remaining blocking correctness issues found.

Review details
  • Files reviewed: 11/11 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/installation-servicing-id branch from 6f8944b to 7256f43 Compare September 5, 2026 20:41
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot September 5, 2026 20:44

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 removal is consistent across code, tests, and documentation, with no unresolved blocking issues after accounting for previously accepted decisions.

No open issues 🎉

Review effort: Balanced

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 removal is consistent across code, tests, and documentation, with no unresolved blocking issues after accounting for previously accepted decisions.

No open issues 🎉

Review effort: Balanced

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 scoped removal is consistent across code, tests, documentation, and ingestion configuration, with no unresolved blocking issues.

No open issues 🎉

Review effort: Balanced

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 scoped removal is consistent across implementation, tests, and documentation, with no unresolved blocking findings.

No open issues 🎉

Review effort: Balanced

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 removal is consistent across implementation, tests, and documentation, with no unresolved blocking issues.

No open issues 🎉

Review effort: Balanced

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 removal is consistent across code, tests, and documentation, with no unresolved blocking issues.

No open issues 🎉

Review effort: Balanced

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 scoped removal is consistent across code, tests, and documentation, with no unresolved blocking issues identified by static review.

No open issues 🎉

Review effort: Balanced

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 removal is consistent across implementation, tests, and documentation, with no unresolved blocking issues.

No open issues 🎉

Review effort: Balanced

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 changes removing asset_id while retaining correlation IDs.

No open issues 🎉

Review effort: Balanced

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

No open issues 🎉

Review effort: Balanced

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 that require changes before approval.

No open issues 🎉

Review effort: Balanced

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 require changes.

No open issues 🎉

Review effort: Balanced

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 the removal of hardware-derived asset IDs from telemetry.

No open issues 🎉

Review effort: Balanced

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 telemetry identifier removal and metrics-upload changes.

No open issues 🎉

Review effort: Balanced

Rebase onto agent configuration read-error handling.

Original layer head: c7313c8

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 43cb811b-f191-4d90-852f-e3373041ca11

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 recorded for the removal of asset_id from telemetry.

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