You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently no way to subscribe to Sentry's initialization event and execute arbitrary code. This may be necessary if the project uses some custom subscriptions that depend on Sentry and they must be executed after Sentry is initialized.
Solution Brainstorm
Add a new hook that will receive a callback that will be called after Sentry is initialized. It should work similarly to addEventProcessor (it accepts a callback and calls it after initialization).
The text was updated successfully, but these errors were encountered:
This may be necessary if the project uses some custom subscriptions that depend on Sentry and they must be executed after Sentry is initialized
Can you elaborate on that? This is the first time we're hearing about this and I'm curious :)
Generally, initializing the SDK via Sentry.init is synchronous, so I'd argue you can emit an event yourself simply after the init call if that makes sense:
Problem Statement
There is currently no way to subscribe to Sentry's initialization event and execute arbitrary code. This may be necessary if the project uses some custom subscriptions that depend on Sentry and they must be executed after Sentry is initialized.
Solution Brainstorm
Add a new hook that will receive a callback that will be called after Sentry is initialized. It should work similarly to addEventProcessor (it accepts a callback and calls it after initialization).
The text was updated successfully, but these errors were encountered: