From 371d44ac1b1668a50c31c2a426292a29d61d79ff Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Mon, 23 Oct 2023 14:35:50 +0200 Subject: [PATCH] fix(integrations): Fix transaction integration --- packages/integrations/src/transaction.ts | 2 +- packages/integrations/test/transaction.test.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/integrations/src/transaction.ts b/packages/integrations/src/transaction.ts index ae9f826cba55..bc36857f6538 100644 --- a/packages/integrations/src/transaction.ts +++ b/packages/integrations/src/transaction.ts @@ -25,7 +25,7 @@ export class Transaction implements Integration { /** @inheritDoc */ public processEvent(event: Event): Event { - return this.processEvent(event); + return this.process(event); } /** diff --git a/packages/integrations/test/transaction.test.ts b/packages/integrations/test/transaction.test.ts index 3d1ad895741f..9a87369fb234 100644 --- a/packages/integrations/test/transaction.test.ts +++ b/packages/integrations/test/transaction.test.ts @@ -5,7 +5,7 @@ const transaction: Transaction = new Transaction(); describe('Transaction', () => { describe('extracts info from module/function of the first `in_app` frame', () => { it('using module only', () => { - const event = transaction.process({ + const event = transaction.processEvent({ exception: { values: [ { @@ -31,7 +31,7 @@ describe('Transaction', () => { }); it('using function only', () => { - const event = transaction.process({ + const event = transaction.processEvent({ exception: { values: [ { @@ -57,7 +57,7 @@ describe('Transaction', () => { }); it('using module and function', () => { - const event = transaction.process({ + const event = transaction.processEvent({ exception: { values: [ { @@ -85,7 +85,7 @@ describe('Transaction', () => { }); it('using default', () => { - const event = transaction.process({ + const event = transaction.processEvent({ exception: { values: [ { @@ -109,7 +109,7 @@ describe('Transaction', () => { }); it('no value with no `in_app` frame', () => { - const event = transaction.process({ + const event = transaction.processEvent({ exception: { values: [ {