Skip to content

Emit ipc_strategy attribute and refactor execute flow#3124

Open
p3dr0rv wants to merge 2 commits into
devfrom
pedroro/ipc-strategy-telemetry
Open

Emit ipc_strategy attribute and refactor execute flow#3124
p3dr0rv wants to merge 2 commits into
devfrom
pedroro/ipc-strategy-telemetry

Conversation

@p3dr0rv
Copy link
Copy Markdown
Contributor

@p3dr0rv p3dr0rv commented May 18, 2026

  • Set the existing AttributeName.ipc_strategy on the DeviceRegistrationIpc span when an IPC strategy succeeds, making it easy to identify the winning strategy.
  • Refactor communicateProtocolWithStrategy into sendProtocolRequestToBroker to separate bundle packing from IPC transport. Packing now happens once before the strategy loop instead of on every retry.
  • Move cache update and unpack back into execute for clarity.

- Set the existing AttributeName.ipc_strategy on the DeviceRegistrationIpc span
  when an IPC strategy succeeds, making it easy to identify the winning strategy.
- Refactor communicateProtocolWithStrategy into sendProtocolRequestToBroker to
  separate bundle packing from IPC transport. Packing now happens once before the
  strategy loop instead of on every retry.
- Move cache update and unpack back into execute for clarity.
Copilot AI review requested due to automatic review settings May 18, 2026 23:53
@p3dr0rv p3dr0rv requested a review from a team as a code owner May 18, 2026 23:53
@github-actions
Copy link
Copy Markdown

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves device registration IPC observability and execution structure in the Common Android library by emitting the winning IPC strategy as an OpenTelemetry attribute and refactoring the execute flow to avoid repeated bundle packing across strategy retries.

Changes:

  • Emit AttributeName.ipc_strategy on the DeviceRegistrationIpc span when an IPC strategy succeeds.
  • Refactor IPC execution by splitting “pack parameters” from “send over IPC” (communicateProtocolWithStrategysendProtocolRequestToBroker) and packing once before the retry loop.
  • Move cache update and protocol response unpacking back into execute() for clearer control flow.

@p3dr0rv
Copy link
Copy Markdown
Contributor Author

p3dr0rv commented May 19, 2026

@copilot add changelog entry

Copilot AI requested a review from a team as a code owner May 19, 2026 03:47
Copy link
Copy Markdown
Contributor

Copilot AI commented May 19, 2026

@copilot add changelog entry

Added in commit 1519d52: a new vNext changelog entry documenting the ipc_strategy telemetry attribute emission and execute-flow refactor.

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.

3 participants