@@ -5,9 +5,9 @@ import { basename, getGlobalObject, logger, timestampWithMs } from '@sentry/util
55 * Used to extract Tracing integration from the current client,
66 * without the need to import `Tracing` itself from the @sentry/apm package.
77 */
8- const TRACING_GETTER = {
8+ const TRACING_GETTER = ( {
99 id : 'Tracing' ,
10- } as IntegrationClass < Integration > ;
10+ } as any ) as IntegrationClass < Integration > ;
1111
1212/** Global Vue object limited to the methods/attributes we require */
1313interface VueInstance {
@@ -236,6 +236,7 @@ export class Vue implements Integration {
236236 // We also need to ask for the `.constructor`, as `pushActivity` and `popActivity` are static, not instance methods.
237237 const tracingIntegration = getCurrentHub ( ) . getIntegration ( TRACING_GETTER ) ;
238238 if ( tracingIntegration ) {
239+ // tslint:disable-next-line:no-unsafe-any
239240 this . _tracingActivity = ( tracingIntegration as any ) . constructor . pushActivity ( 'Vue Application Render' ) ;
240241 }
241242 this . _rootSpan = getCurrentHub ( ) . startSpan ( {
@@ -307,6 +308,7 @@ export class Vue implements Integration {
307308 // We also need to ask for the `.constructor`, as `pushActivity` and `popActivity` are static, not instance methods.
308309 const tracingIntegration = getCurrentHub ( ) . getIntegration ( TRACING_GETTER ) ;
309310 if ( tracingIntegration ) {
311+ // tslint:disable-next-line:no-unsafe-any
310312 ( tracingIntegration as any ) . constructor . popActivity ( this . _tracingActivity ) ;
311313 }
312314 }
0 commit comments