Skip to content

Commit

Permalink
docs: Add note for sigterm event
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome committed Aug 26, 2024
1 parent 5b06282 commit 4b7a751
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ The `close` method optionally takes a timeout in milliseconds and returns a
promise that resolves when all pending events are flushed, or the timeout kicks
in.

Note that you can call this method on `SIGTERM` to gracefully shut down a service or container.

```javascript
Sentry.close(2000).then(function () {
process.exit();
Expand Down

0 comments on commit 4b7a751

Please sign in to comment.