From b3dda26481833bbf2817ef10351a06bcd3837e0f Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Thu, 5 Dec 2024 13:37:33 +0100 Subject: [PATCH] fix(instrumentation-user-insteraction)!: make getZoneWithPrototype private --- .../src/instrumentation.ts | 6 +++--- .../test/userInteraction.nozone.test.ts | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts b/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts index c1b7ff4cad..6216be899a 100644 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts +++ b/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts @@ -575,7 +575,7 @@ export class UserInteractionInstrumentation extends InstrumentationBase { }); sandbox - .stub(userInteractionInstrumentation, 'getZoneWithPrototype') + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore this is private, but it exists + .stub(userInteractionInstrumentation, '_getZoneWithPrototype') .callsFake(() => { return false as any; });