Multi-hub setups #1521
Replies: 4 comments 4 replies
-
Just wanted to comment that this solution doesn't really work for the use case that was supported by the comments in the linked issue. It's a bit unfeasible to start adding contextmanagers to every place where we want to log to our secondary DSN. Doing this based on the name of the logger worked/works quite well and doesn't add all the boilerplate of the contextmanagers. Support for something similar would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Do you have any plans to fully support multi-DSN (i.e. clients) in the future? |
Beta Was this translation helpful? Give feedback.
-
@sl0thentr0py we have an enterprise customer who needs this to manage quotas across teams all contributing to a very large codebase. They don't mind having to write some custom code but my understanding is that with a hub-based solution you provided above all the breadcrumbs etc will go on the main hub and ones going to alternative hubs/DSNs would only have a stack trace. Is that correct? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Sometimes within a larger application, users want to use different DSNs for different parts of the application. The following sample shows how to setup two hubs and send exceptions to different DSNs.
As a caveat, in general, some of the integrations logic might not work with such multi-hub setups, please report if something doesn't work and we'll try to figure it out together. These are edge case usages and the SDK is definitely not built with such scenarios in mind.
Related issues
#610
Beta Was this translation helpful? Give feedback.
All reactions