Skip to content

Commit

Permalink
docs: Add note for sigterm event (#11142)
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome committed Aug 27, 2024
1 parent 5e56c31 commit aac129a
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 aac129a

Please sign in to comment.