Feature Request | Allow Multiple Raven Instances #1269
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR creates a new bundle exposing both Raven constructor and singleton.
This functionality has been mentioned before.
Our web application is constructed as a composite of multiple sub-applications, which run in the same tab or worker. Each sub-application is developed and managed independently by a separate group. Each one of these groups wants to have its own DSN so that it can monitor its sub-application independently. Besides that the main application has its own Raven singleton.
Thus we need both Raven constructor and Raven singleton and we’d like to avoid fetching / bundling Raven twice. Unfortunately, the current API doesn’t allow this.