File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed
docs/platforms/javascript/common Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff 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
Load Diff This file was deleted.
Original file line number Diff line number Diff 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/' ,
You can’t perform that action at this time.
0 commit comments