From aac129a30a1d0c85aadb3733ea3e3f936ae33de0 Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Tue, 27 Aug 2024 09:39:47 +0200 Subject: [PATCH] docs: Add note for sigterm event (#11142) --- .../configuration/drain-example/javascript.node.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform-includes/configuration/drain-example/javascript.node.mdx b/platform-includes/configuration/drain-example/javascript.node.mdx index 45a88bfa9b496..265d8ecee242b 100644 --- a/platform-includes/configuration/drain-example/javascript.node.mdx +++ b/platform-includes/configuration/drain-example/javascript.node.mdx @@ -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();