Skip to content

telemetry [2]: introduce typed command classification - #880

Draft
bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/datastore-generic-storagefrom
user/bfjelds/mjolnir/telemetry-command-kind
Draft

bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/datastore-generic-storagefrom
user/bfjelds/mjolnir/telemetry-command-kind

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.

🟢 Approval recommended

Static review identified no blocking issues in the typed mappings, phase naming, or datastore admission changes.

No open issues 🎉

What changed in this PR

Introduces typed command classification shared by the CLI, gRPC client, and daemon, laying groundwork for command-correlated telemetry in the broader stack.

Changes:

  • Adds CommandKind, phase-aware naming, and classification tests.
  • Replaces daemon servicing-request name strings with typed constructors.
  • Uses shared classification for CLI and daemon datastore admission checks.
File Description
crates/​trident/​src/​server/​tridentserver/​services/​update.rs Uses typed update command variants.
crates/​trident/​src/​server/​tridentserver/​services/​streaming.rs Uses typed disk-streaming classification.
crates/​trident/​src/​server/​tridentserver/​services/​rollback.rs Uses typed rollback command variants.
crates/​trident/​src/​server/​tridentserver/​services/​rebuild_raid.rs Uses typed RAID rebuild classification.
crates/​trident/​src/​server/​tridentserver/​services/​install.rs Uses typed install command variants.
crates/​trident/​src/​server/​tridentserver/​services/​commit.rs Classifies commit and check-root requests.
crates/​trident/​src/​server/​tridentserver/​mod.rs Accepts typed requests and checks datastore admission.
crates/​trident/​src/​main.rs Applies shared datastore admission classification.
crates/​trident/​src/​logging/​operation_context.rs Adds phase-aware command naming.
crates/​trident/​src/​logging/​mod.rs Registers the operation-context module.
crates/​trident/​src/​lib.rs Registers the command-classification module.
crates/​trident/​src/​command_kind.rs Defines command mappings, predicates, constructors, and tests.

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

Static review found no blocking issues in the typed mappings, phase naming, or datastore admission changes; executable validation was not performed.

No open issues 🎉

Review effort: Balanced

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d0e7cadc-8f44-443f-affe-6ce8e856a218
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/mjolnir/telemetry-command-kind branch from d0d148c to 6c6ee5c Compare October 26, 2026 01:53
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 26, 2026 01: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

Static review found consistent command mappings and datastore admission behavior with no blocking issues; tests were not executed.

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