File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -82,15 +82,15 @@ Registering a Trace Service is a 3-step process.
82
82
instrumentation:
83
83
84
84
``` javascript
85
- import { init , routingInstrumentation } from ' @sentry/angular' ;
85
+ import { init , instrumentAngularRouting } from ' @sentry/angular' ;
86
86
import { Integrations as TracingIntegrations } from ' @sentry/tracing' ;
87
87
88
88
init ({
89
89
dsn: ' __DSN__' ,
90
90
integrations: [
91
91
new TracingIntegrations.BrowserTracing ({
92
92
tracingOrigins: [' localhost' , ' https://yourserver.io/api' ],
93
- routingInstrumentation: routingInstrumentation ,
93
+ routingInstrumentation: instrumentAngularRouting ,
94
94
}),
95
95
],
96
96
tracesSampleRate: 1 ,
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ export { init } from './sdk';
4
4
export { createErrorHandler , ErrorHandlerOptions } from './errorhandler' ;
5
5
export {
6
6
getActiveTransaction ,
7
- routingInstrumentation ,
7
+ // TODO `instrumentAngularRouting` is just an alias for `routingInstrumentation`; deprecate the latter at some point
8
+ instrumentAngularRouting , // new name
9
+ routingInstrumentation , // legacy name
8
10
TraceClassDecorator ,
9
11
TraceMethodDecorator ,
10
12
TraceDirective ,
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ export function routingInstrumentation(
30
30
}
31
31
}
32
32
33
+ export const instrumentAngularRouting = routingInstrumentation ;
34
+
33
35
/**
34
36
* Grabs active transaction off scope
35
37
*/
You can’t perform that action at this time.
0 commit comments