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();