fix(perps): target preload performance measurements - #9906
Open
abretonc7s wants to merge 3 commits into
Open
Conversation
10 tasks
abretonc7s
marked this pull request as ready for review
August 18, 2026 15:05
This was referenced Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Targets Perps preload measurements to their named trace IDs, exposes a post-hydration controller construction timestamp to clients, and removes the wallet address from user-preload trace data. This is the minimal Core contract required by the Perps loading dashboard; market and account bootstrap behavior is unchanged.
Changelog
Validation
Related
Follow-up to #9815.
Note
Low Risk
Telemetry and optional DI hooks only; preload and trading paths are unchanged aside from trace targeting and PII removal from traces.
Overview
Extends the Perps observability contract for the loading dashboard without changing market or account bootstrap behavior.
PerpsPerformancegains an optionalonControllerConstructedcallback, invoked once after synchronous disk hydration in the constructor withperformance.now()(no Sentry write at construct time).PerpsTracer.setMeasurementis typed as an overload that accepts an optional fourthidargument; market and user preload paths now pass the sametraceIdused when opening those named traces so durations attach to the correct span.User data preload no longer puts
userAddresson thePerps User Data Preloadtracedataor in debug logs tied to that flow, reducing PII in telemetry while fetch behavior is unchanged.Reviewed by Cursor Bugbot for commit 308f4c8. Bugbot is set up for automated code reviews on this repo. Configure here.