Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/platforms/javascript/common/apis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,13 @@ Sentry.setTag("tag", "value");
},
]}
>
Flushes all pending events and disables the SDK. Note that this does not
remove any listeners the SDK may have set up.
Flushes all pending events and disables the SDK. Note that this does not
remove any listeners the SDK may have set up. After a call to `close`, the current client cannot be used anymore. It's
important to only call `close` immediately before shutting down the application.

Alternatively, the [`flush`](#flush) method drains the event queue while keeping the
client enabled for continued use.

</SdkApi>

<SdkApi
Expand Down
10 changes: 0 additions & 10 deletions docs/platforms/javascript/common/configuration/draining.mdx

This file was deleted.

8 changes: 8 additions & 0 deletions redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,14 @@ const userDocsRedirects = [
source: '/platforms/javascript/guides/:guide/configuration/environments/',
destination: '/platforms/javascript/guides/:guide/configuration/options/#environment',
},
{
source: '/platforms/javascript/configuration/draining/',
destination: '/platforms/javascript/apis/#flush',
},
{
source: '/platforms/javascript/guides/:guide/configuration/draining/',
destination: '/platforms/javascript/guides/:guide/apis/#flush',
},
{
source: '/platforms/:platform/context/',
destination: '/platforms/:platform/enriching-events/context/',
Expand Down
Loading