Skip to content

Commit

Permalink
fix(integrations): Fix transaction integration (#9334)
Browse files Browse the repository at this point in the history
This was not covered well by our tests 😬 oops...

Fixes #9332
  • Loading branch information
mydea committed Oct 23, 2023
1 parent 07b4c76 commit 1245e91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/integrations/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Transaction implements Integration {

/** @inheritDoc */
public processEvent(event: Event): Event {
return this.processEvent(event);
return this.process(event);
}

/**
Expand Down
10 changes: 5 additions & 5 deletions packages/integrations/test/transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand All @@ -31,7 +31,7 @@ describe('Transaction', () => {
});

it('using function only', () => {
const event = transaction.process({
const event = transaction.processEvent({
exception: {
values: [
{
Expand All @@ -57,7 +57,7 @@ describe('Transaction', () => {
});

it('using module and function', () => {
const event = transaction.process({
const event = transaction.processEvent({
exception: {
values: [
{
Expand Down Expand Up @@ -85,7 +85,7 @@ describe('Transaction', () => {
});

it('using default', () => {
const event = transaction.process({
const event = transaction.processEvent({
exception: {
values: [
{
Expand All @@ -109,7 +109,7 @@ describe('Transaction', () => {
});

it('no value with no `in_app` frame', () => {
const event = transaction.process({
const event = transaction.processEvent({
exception: {
values: [
{
Expand Down

0 comments on commit 1245e91

Please sign in to comment.