Skip to content

Commit aac129a

Browse files
authored
docs: Add note for sigterm event (#11142)
1 parent 5e56c31 commit aac129a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform-includes/configuration/drain-example/javascript.node.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ The `close` method optionally takes a timeout in milliseconds and returns a
22
promise that resolves when all pending events are flushed, or the timeout kicks
33
in.
44

5+
Note that you can call this method on `SIGTERM` to gracefully shut down a service or container.
6+
57
```javascript
68
Sentry.close(2000).then(function () {
79
process.exit();

0 commit comments

Comments
 (0)