-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Milestone
Description
Problem Statement
I would like to initialize Sentry in one context (Express) and later add an Integration in another context (Remix).
Some relevant links:
- Improve Express Support #5962
- In Support of Remix #4946
- Improve user facing integrations configuration #4789
- Revamp the Integrations API #4790
Solution Brainstorm
Some ideas:
- allow
Sentry.init(…)
multiple times. Clients can use eitherintegrations: […]
to append orintegrations: Integration[] => Integration[]
to modify the stack. - add a new
addIntegration(integration)
to append only. This is simpler but more limited. - add a new
Sentry.integrations(Integration[] => Integration[])
to modify the stack after initialization.
livthomas, rabidaudio and drakedeatonuk