Skip to content

Add optional logger to Breakable and independent tree view objects#27567

Open
jzaffiro wants to merge 3 commits into
mainfrom
jzaffiro/treeTelemetryLogger
Open

Add optional logger to Breakable and independent tree view objects#27567
jzaffiro wants to merge 3 commits into
mainfrom
jzaffiro/treeTelemetryLogger

Conversation

@jzaffiro

@jzaffiro jzaffiro commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Plumb an optional logger through the SharedTree Breakable object to support telemetry through all levels of the tree. Additionally, support logging on independent tree views by adding a logger to the options passed through the independent tree.

AB#73616

Reviewer Guidance

The review process is outlined on this wiki page.

Specifically, is there a better place to plumb telemetry through for an independent tree?

Copilot AI review requested due to automatic review settings June 19, 2026 21:56
@jzaffiro jzaffiro requested a review from a team as a code owner June 19, 2026 21:56
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Hi! Thank you for opening this PR. Want me to review it?

Based on the diff (86 lines, 6 files), I've queued these reviewers:

  • Correctness — logic errors, race conditions, lifecycle issues
  • Security — vulnerabilities, secret exposure, injection
  • API Compatibility — breaking changes, release tags, type design
  • Performance — algorithmic regressions, memory leaks
  • Testing — coverage gaps, hollow tests

How this works

  • Adjust the reviewer set by ticking/unticking boxes above. Reviewer toggles alone don't trigger anything.

  • Tick Start review below to dispatch the review fleet.

  • After review finishes, tick Start review again to request another run — it auto-resets after each dispatch.

  • This comment updates as new commits land; your reviewer selections are preserved.

  • Start review

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.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

@jzaffiro jzaffiro requested a review from a team as a code owner June 19, 2026 22:30

The alpha `independentView`, `independentInitializedView`, and `createIndependentTreeAlpha` APIs now accept an optional `logger` on their options.
Previously these standalone (non-`SharedTree`) views had no way to surface telemetry,
so internal events — including those emitted when the tree enters a broken state — were silently dropped.

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.

🚫 [vale] reported by reviewdog 🐶
[Microsoft.Dashes] Remove the spaces around ' — '.


The alpha `independentView`, `independentInitializedView`, and `createIndependentTreeAlpha` APIs now accept an optional `logger` on their options.
Previously these standalone (non-`SharedTree`) views had no way to surface telemetry,
so internal events — including those emitted when the tree enters a broken state — were silently dropped.

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.

🚫 [vale] reported by reviewdog 🐶
[Microsoft.Dashes] Remove the spaces around ' — '.


The alpha `independentView`, `independentInitializedView`, and `createIndependentTreeAlpha` APIs now accept an optional `logger` on their options.
Previously these standalone (non-`SharedTree`) views had no way to surface telemetry,
so internal events — including those emitted when the tree enters a broken state — were silently dropped.

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.

⚠️ [vale] reported by reviewdog 🐶
[Microsoft.Adverbs] Remove 'silently' if it's not important to the meaning of the statement.

The alpha `independentView`, `independentInitializedView`, and `createIndependentTreeAlpha` APIs now accept an optional `logger` on their options.
Previously these standalone (non-`SharedTree`) views had no way to surface telemetry,
so internal events — including those emitted when the tree enters a broken state — were silently dropped.
Passing a logger forwards those events to the caller's telemetry pipeline,

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.

📝 [vale] reported by reviewdog 🐶
[Microsoft.SentenceLength] Try to keep sentences short (< 30 words).

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Bundle size comparison

Base commit: 3adb358594a36333b40463a2f8be3abcb07c782c
Head commit: d1608ec92823d1d7a9c03d2e6671a562f2744801

⚠️ Comparison unavailable.

The PR's CI build failed — fix the build and the comment will update once the next run succeeds.

@github-actions

Copy link
Copy Markdown
Contributor

🔗 No broken links found! ✅

Your attention to detail is admirable.

linkcheck output

1: starting server using command "npm run serve -- --no-open"
and when url "[ 'http://127.0.0.1:3000' ]" is responding with HTTP status code 200
running tests using command "npm run check-links"


> fluid-framework-website@0.0.0 serve
> docusaurus serve --no-open

[SUCCESS] Serving "build" directory at: http://localhost:3000/

> fluid-framework-website@0.0.0 check-links
> linkcheck http://localhost:3000 --skip-file skipped-urls.txt

Crawling...

Stats:
  290924 links
    1934 destination URLs
    2184 URLs ignored
       0 warnings
       0 errors


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