Skip to content

telemetry [5]: correlate staged servicing operations - #883

Draft
bfjelds (bfjelds) wants to merge 3 commits into
user/bfjelds/mjolnir/telemetry-installation-idfrom
user/bfjelds/mjolnir/telemetry-servicing-id
Draft

bfjelds (bfjelds) wants to merge 3 commits into
user/bfjelds/mjolnir/telemetry-installation-idfrom
user/bfjelds/mjolnir/telemetry-servicing-id

Conversation

@bfjelds

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

Copy link
Copy Markdown
Member

@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

Multiboot finalize-only startup telemetry can inherit an unrelated servicing ID before the correct datastore is selected.

1 open issue
What changed in this PR

This PR extends telemetry correlation by persisting a servicing ID shared across staging, finalize, and commit invocations.

Changes:

  • Store and recover servicing IDs through the datastore’s key-value API.
  • Attach servicing IDs to trace events and refresh them during servicing commands.
  • Add regression tests for ID replacement, stale-ID overrides, and cross-invocation recovery.
File Description
crates/​trident/​src/​logging/​tracestream.rs Attach servicing IDs to telemetry and test correlation behavior.
crates/​trident/​src/​lib.rs Refresh servicing IDs for install, update, rollback, and commit.
crates/​trident/​src/​datastore.rs Persist and retrieve the current servicing ID.

Review effort: Balanced

Comment thread crates/trident/src/logging/tracestream.rs

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 previously reported multiboot finalize-only startup attribution issue remains unresolved.

1 open issue

Review effort: Balanced

@bfjelds bfjelds (bfjelds) changed the title telemetry: correlate staged servicing operations telemetry [5]: correlate staged servicing operations Oct 26, 2026
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-servicing-id branch from 3aadb8d to a601466 Compare October 26, 2026 01:53
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 26, 2026 01:56

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 existing unresolved review identifies incorrect startup attribution during multiboot finalize-only operations before the correct datastore is selected.

1 open issue

Review effort: Balanced

bfjelds (bfjelds) and others added 2 commits October 28, 2026 00:01
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d0e7cadc-8f44-443f-affe-6ce8e856a218

Copilot-Session: 43cb811b-f191-4d90-852f-e3373041ca11
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-servicing-id branch from a601466 to 93b1fcf Compare October 28, 2026 00:06
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 28, 2026 00:36

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

Reading a datastore without a servicing ID leaves the previous datastore’s ID cached, potentially attributing later servicing metrics to the wrong datastore.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread crates/trident/src/logging/tracestream.rs
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 were identified for the changes to preserve servicing-ID correlation across staged operations.

No open issues 🎉

1 resolved since last review

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