We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 655908e + 3e93bb4 commit 7cb8ce1Copy full SHA for 7cb8ce1
app/routes/application.js
@@ -2,11 +2,20 @@ import { action } from '@ember/object';
2
import Route from '@ember/routing/route';
3
import { inject as service } from '@ember/service';
4
5
+import * as Sentry from '@sentry/browser';
6
+
7
export default class ApplicationRoute extends Route {
8
@service progress;
9
+ @service router;
10
@service session;
11
12
beforeModel() {
13
+ this.router.on('routeDidChange', () => {
14
+ Sentry.configureScope(scope => {
15
+ scope.setTag('routeName', this.router.currentRouteName);
16
+ });
17
18
19
// trigger the task, but don't wait for the result here
20
//
21
// we don't need a `catch()` block here because network
0 commit comments