Skip to content

Commit fe72a68

Browse files
authored
feat(js): Remove `Shutdown & Draining" page in favor of APIs page (#13231)
1 parent 4a6b095 commit fe72a68

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

docs/platforms/javascript/common/apis.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ Sentry.setTag("tag", "value");
8686
},
8787
]}
8888
>
89-
Flushes all pending events and disables the SDK. Note that this does not
90-
remove any listeners the SDK may have set up.
89+
Flushes all pending events and disables the SDK. Note that this does not
90+
remove any listeners the SDK may have set up. After a call to `close`, the current client cannot be used anymore. It's
91+
important to only call `close` immediately before shutting down the application.
92+
93+
Alternatively, the [`flush`](#flush) method drains the event queue while keeping the
94+
client enabled for continued use.
95+
9196
</SdkApi>
9297

9398
<SdkApi

docs/platforms/javascript/common/configuration/draining.mdx

Lines changed: 0 additions & 10 deletions
This file was deleted.

redirects.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,14 @@ const userDocsRedirects = [
498498
source: '/platforms/javascript/guides/:guide/configuration/environments/',
499499
destination: '/platforms/javascript/guides/:guide/configuration/options/#environment',
500500
},
501+
{
502+
source: '/platforms/javascript/configuration/draining/',
503+
destination: '/platforms/javascript/apis/#flush',
504+
},
505+
{
506+
source: '/platforms/javascript/guides/:guide/configuration/draining/',
507+
destination: '/platforms/javascript/guides/:guide/apis/#flush',
508+
},
501509
{
502510
source: '/platforms/:platform/context/',
503511
destination: '/platforms/:platform/enriching-events/context/',

0 commit comments

Comments
 (0)