-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[FEATURE ember-improved-instrumentation] Rebase + Tests #13017
Conversation
This commit adds instrumentation for interaction events handled by components. The `before` hook of the instrumentation runs right before the component’s event handler is invoked, and the `after` hook runs right after it is invoked.
This commit instruments closure actions.
This instruments the start and end of top-level routing transitions. It does not run for redirects or intermediate transitions. There are two events: `router.transition.url` (payload contains the URL) and `router.transition.named` (payload contains the route name). The current implementation does not properly handle top-level transitions that never complete at all; this requires a fix to router.js.
Tests seem broken |
Yea, there is some weird stuff around route transitions where certain events are fired in some cases and not others. |
1f0bc7d
to
2ba1336
Compare
2ba1336
to
364fc53
Compare
364fc53
to
c89f137
Compare
@chancancode You ok merging this for the time being and then come back to router instrumentation? Can squash if everything else looks good. |
☔ The latest upstream changes (presumably #13100) made this pull request unmergeable. Please resolve the merge conflicts. |
@chadhietala - We will definitely need to fix the failing tests before merging (I haven't looked into what exactly is wrong yet). |
Also, does this need to live on or is it replaced by #13279? |
Yeah the comments left on #13279 would also apply to this PR. |
Rebase and Adds Test For #12550. However this just introduces action instrumentation. There are still issues around instrumenting the router. I have saved off the diff for the time being. https://gist.github.com/chadhietala/2b3065f3da3d8ae6e2ff