Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared tree/rebaser telemetry #21154

Closed

Conversation

jikim-msft
Copy link
Contributor

@jikim-msft jikim-msft commented May 18, 2024

Description

ADO 5141

This PR creates telemetry loggers for the SharedTree DDS which emit telemetry events for rebase operations of below scenarios:

  • rebasing the EditManager local branch over new peer edits
  • rebasing an EditManager peer branch over trunk edits when adjusting the branch to the peer's new ref seq
  • rebasing a new peer edit to the tip of the trunk
  • rebasing the inverse of a revertible.
  • rebasing a user branch

The event will include:

  • parent branch length
  • child branch length
  • time duration

Note: Instead of logging the event for every rebase operation, we should log events in batch (e.g., every 100 operations).

@github-actions github-actions bot added area: dds Issues related to distributed data structures area: dds: tree base: main PRs targeted against main branch labels May 18, 2024
@@ -173,6 +181,14 @@ export function rebaseBranch<TChange>(
findCommonAncestor(targetCommit, targetHead) !== undefined,
0x676 /* target commit is not in target branch */,
);

logger?.sendTelemetryEvent({
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you considered using logger?.sendPerformanceEvent(..) instead? It seems like a good fit given the type of telemetry.

@jikim-msft jikim-msft closed this Jun 3, 2024
@jikim-msft jikim-msft deleted the shared-tree/rebaser-telemetry branch June 3, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dds: tree area: dds Issues related to distributed data structures base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants