We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c3386 commit f6a1eaeCopy full SHA for f6a1eae
1 file changed
dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/tests/events.test.ts
@@ -86,7 +86,10 @@ test('Multiple OnEvent decorators', async () => {
86
87
expect(firstTx).toBeDefined();
88
expect(secondTx).toBeDefined();
89
- // With isolation scope forking, tags set in event handlers should NOT leak onto the root HTTP transaction
+
90
+ // Tags should be on the event handler transactions, not the root HTTP transaction
91
+ expect(firstTx.tags?.['test-first'] || firstTx.tags?.['test-second']).toBe(true);
92
+ expect(secondTx.tags?.['test-first'] || secondTx.tags?.['test-second']).toBe(true);
93
expect(rootTx.tags?.['test-first']).toBeUndefined();
94
expect(rootTx.tags?.['test-second']).toBeUndefined();
95
});
0 commit comments