Skip to content

Commit da37aa7

Browse files
RulaKhaledclaude
andcommitted
test(server-utils): Assert the aligned Flue error mechanism
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 34db957 commit da37aa7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/server-utils/test/ai/lib/tracing/flue.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,8 @@ describe('createFlueInstrumentation', () => {
524524
const exception = client.event?.exception?.values?.[0];
525525
expect(exception?.type).toBe('TypeError');
526526
expect(exception?.value).toBe('kaboom');
527-
expect(exception?.mechanism?.type).toBe('auto.ai.flue.tool_error');
527+
expect(exception?.mechanism?.type).toBe('auto.ai.flue');
528+
expect(exception?.mechanism?.handled).toBe(false);
528529
});
529530

530531
it('does not capture an error event for a tool that succeeded', async () => {

0 commit comments

Comments
 (0)