Skip to content

Conversation

@k-fish
Copy link
Member

@k-fish k-fish commented Jul 28, 2020

Summary

This will add routing instrumentation for Ember transitions to @sentry/ember.

  • The import will be dynamically loading depending on configuration settings with to not increase bundle size.
  • Additions to capture beforeModel model and afterModel will come in a later PR.

Looking for feedback specifically on using the route names in lieu of urls like React. There isn't as clean of a way to match urls like we do with react-router, so I'm currently using format for Ember's registry router:<route-name>.

Screenshot

Added tracing route to the dummy so navigating to the new route can be tested.
Screen Shot 2020-07-28 at 11 30 18 AM
Screen Shot 2020-07-28 at 11 32 17 AM

Todo

  • Add acceptance tests for catching the transaction event on transition
  • Ensure this works with older LTS for older RouterService implementations, and silence warnings if we need to support multiple approaches.
  • Update README to include instructions to enable/disable performance
  • Update changelog
  • Do not override integrations configured by the end-user
@k-fish k-fish requested a review from kamilogorek as a code owner July 28, 2020 18:38
This will add routing instrumentation for Ember transitions to @sentry/ember. The import will be dynamically loading depending on configuration settings with to not increase bundle size.
@k-fish k-fish force-pushed the feat/sentry-ember-perf branch from 279ebcd to d80ee32 Compare July 28, 2020 18:43
@k-fish k-fish requested a review from AbhiPrasad July 28, 2020 18:43
@github-actions
Copy link
Contributor

github-actions bot commented Jul 28, 2020

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 17.68 KB (+0.01% 🔺)
@sentry/browser - Webpack 18.47 KB (0%)
@sentry/react - Webpack 18.47 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 22.79 KB (0%)
kamilogorek
kamilogorek previously approved these changes Aug 27, 2020
@kamilogorek kamilogorek dismissed their stale review August 27, 2020 09:19

Whoops, wrong button.

@k-fish k-fish changed the title [WIP] feat: Add basic router instrumentation for @sentry/ember feat: Add basic router instrumentation for @sentry/ember Sep 2, 2020
Copy link
Contributor

@rhcarvalho rhcarvalho left a comment

Choose a reason for hiding this comment

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

@k-fish thanks for contributing this, it's exciting to have first-class support for route changes in yet another popular framework ❤️

Looked at previous reviews, at least #2784 (comment) needs to be addressed before this is mergeable.

I'm marking this with a "request changes" and added an item to the TODO in the PR description for visibility of where we stand.

@k-fish
Copy link
Member Author

k-fish commented Sep 4, 2020

@rhcarvalho that comment was actually resolved already, I spread the existing integrations now on the line below, and add this Ember instrumentation as an additional integration.

@kamilogorek
Copy link
Contributor

JS code-wise looks good, I'm not able to tell much about ember-specific code though. Left one question. Feel free to merge once addressed.

@k-fish k-fish merged commit 2e761fe into master Sep 8, 2020
@k-fish k-fish deleted the feat/sentry-ember-perf branch September 8, 2020 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants