Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ const client = Sentry.init({
setupOtel(client);

setTimeout(() => {
// This should not be called because the script throws before this resolves
// This should not be called because the script throws before this resolves.
// Using 3000ms to account for the SDK's 2000ms shutdown timeout + buffer.
process.stdout.write("I'm alive!");
process.exit(0);
}, 500);
}, 3000);

throw new Error();
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ const client = Sentry.init({
setupOtel(client);

setTimeout(() => {
// This should not be called because the script throws before this resolves
// This should not be called because the script throws before this resolves.
// Using 3000ms to account for the SDK's 2000ms shutdown timeout + buffer.
process.stdout.write("I'm alive!");
process.exit(0);
}, 500);
}, 3000);

throw new Error();
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ Sentry.init({
});

setTimeout(() => {
// This should not be called because the script throws before this resolves
// This should not be called because the script throws before this resolves.
// Using 3000ms to account for the SDK's 2000ms shutdown timeout + buffer.
process.stdout.write("I'm alive!");
process.exit(0);
}, 500);
}, 3000);

throw new Error();
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ Sentry.init({
});

setTimeout(() => {
// This should not be called because the script throws before this resolves
// This should not be called because the script throws before this resolves.
// Using 3000ms to account for the SDK's 2000ms shutdown timeout + buffer.
process.stdout.write("I'm alive!");
process.exit(0);
}, 500);
}, 3000);

throw new Error();
Loading