Skip to content

Commit 62397c5

Browse files
committed
one more try
1 parent affb6f9 commit 62397c5

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

dev-packages/browser-integration-tests/suites/tracing/ai-providers/anthropic/subject.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ const response = await client.messages.create({
1818

1919
// eslint-disable-next-line no-console
2020
console.log(JSON.stringify(response));
21+
22+
// Ensure transaction is flushed in CI
23+
await Sentry.flush(2000);

dev-packages/browser-integration-tests/suites/tracing/ai-providers/google-genai/subject.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ const chat = client.chats.create({
2525
],
2626
});
2727

28-
await chat.sendMessage({
28+
const response = await chat.sendMessage({
2929
message: 'Tell me a joke',
3030
});
31+
32+
// eslint-disable-next-line no-console
33+
console.log(JSON.stringify(response));
34+
35+
// Ensure transaction is flushed in CI
36+
await Sentry.flush(2000);

dev-packages/browser-integration-tests/suites/tracing/ai-providers/openai/subject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ const response = await client.chat.completions.create({
2222
// eslint-disable-next-line no-console
2323
console.log(JSON.stringify(response));
2424

25-
26-
25+
// Ensure transaction is flushed in CI
26+
await Sentry.flush(2000);

0 commit comments

Comments
 (0)