@@ -5,9 +5,9 @@ import { basename, getGlobalObject, logger, timestampWithMs } from '@sentry/util
5
5
* Used to extract Tracing integration from the current client,
6
6
* without the need to import `Tracing` itself from the @sentry/apm package.
7
7
*/
8
- const TRACING_GETTER = {
8
+ const TRACING_GETTER = ( {
9
9
id : 'Tracing' ,
10
- } as IntegrationClass < Integration > ;
10
+ } as any ) as IntegrationClass < Integration > ;
11
11
12
12
/** Global Vue object limited to the methods/attributes we require */
13
13
interface VueInstance {
@@ -236,6 +236,7 @@ export class Vue implements Integration {
236
236
// We also need to ask for the `.constructor`, as `pushActivity` and `popActivity` are static, not instance methods.
237
237
const tracingIntegration = getCurrentHub ( ) . getIntegration ( TRACING_GETTER ) ;
238
238
if ( tracingIntegration ) {
239
+ // tslint:disable-next-line:no-unsafe-any
239
240
this . _tracingActivity = ( tracingIntegration as any ) . constructor . pushActivity ( 'Vue Application Render' ) ;
240
241
}
241
242
this . _rootSpan = getCurrentHub ( ) . startSpan ( {
@@ -307,6 +308,7 @@ export class Vue implements Integration {
307
308
// We also need to ask for the `.constructor`, as `pushActivity` and `popActivity` are static, not instance methods.
308
309
const tracingIntegration = getCurrentHub ( ) . getIntegration ( TRACING_GETTER ) ;
309
310
if ( tracingIntegration ) {
311
+ // tslint:disable-next-line:no-unsafe-any
310
312
( tracingIntegration as any ) . constructor . popActivity ( this . _tracingActivity ) ;
311
313
}
312
314
}
0 commit comments