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 b69d072 commit 91cc568Copy full SHA for 91cc568
1 file changed
dev-packages/node-integration-tests/suites/tracing/vercelai/test.ts
@@ -928,15 +928,10 @@ describe('Vercel AI integration', () => {
928
test('does not overwrite conversation id set via Sentry.setConversationId with responseId from provider metadata', async () => {
929
await createRunner()
930
.expect({
931
- transaction: {
932
- transaction: 'main',
933
- spans: expect.arrayContaining([
934
- expect.objectContaining({
935
- data: expect.objectContaining({
936
- 'gen_ai.conversation.id': 'conv-a',
937
- }),
938
939
- ]),
+ transaction: transaction => {
+ for (const span of transaction.spans ?? []) {
+ expect(span.data?.['gen_ai.conversation.id']).toBe('conv-a');
+ }
940
},
941
})
942
.start()
0 commit comments