Skip to content

Commit d4a9c06

Browse files
authored
fix: Adds Node shutdownTimeout option typings (getsentry#2669)
Include `shutdownTimeout` option
1 parent 092367d commit d4a9c06

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/types/src/options.ts

+9
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ export interface Options {
131131
* @returns The breadcrumb that will be added | null.
132132
*/
133133
beforeBreadcrumb?(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): Breadcrumb | null;
134+
135+
/**
136+
* Controls how many milliseconds to wait before shutting down. The default is
137+
* SDK-specific but typically around 2 seconds. Setting this too low can cause
138+
* problems for sending events from command line applications. Setting it too
139+
* high can cause the application to block for users with network connectivity
140+
* problems.
141+
*/
142+
shutdownTimeout?: number;
134143

135144
_experiments?: {
136145
[key: string]: any;

0 commit comments

Comments
 (0)