From 4b7a751f8e6f8ca3c25efff364943f9b68b46c39 Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Mon, 26 Aug 2024 11:22:49 +0200 Subject: [PATCH] docs: Add note for sigterm event --- .../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();