Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
obecny committed Sep 18, 2024
1 parent 6afc915 commit 7aff02c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const queueName = 'queue1';
const { connection, channel } = await connectToRabbitMQ();
await createQueue(queueName, channel);

await Sentry.startSpan({ name: 'Test Server Start1' }, async () => {
await Sentry.startSpan({ name: 'root span' }, async () => {
sendMessageToQueue(queueName, channel, JSON.stringify({ foo: 'bar01' }));
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('amqplib auto-instrumentation', () => {
})
.expect({
transaction: (transaction: TransactionEvent) => {
expect(transaction.transaction).toEqual('Test Server Start1');
expect(transaction.transaction).toEqual('root span');
expect(transaction.spans?.length).toEqual(1);
expect(transaction.spans![0]).toMatchObject(EXPECTED_MESSAGE_SPAN_PRODUCER);
},
Expand Down

0 comments on commit 7aff02c

Please sign in to comment.