How to change DSN dynamicaly? #9306
-
I build Android apps with capacitor, which is deployed to a completely separate and isolated internal network of each organization. Therefore, the IP address of the sentry server is unpredictable. How do I dynamically change the DSN of the sentry sdk? thank you Capacitor's sdk includes the javascript sdk and the java sdk. Since the documentation for the capacitor sdk is sparse, it would be helpful if anyone could provide information on how to change the DSN for both sdk. Sentry's documentation says that "if you need to change the DSN without changing the code, you may need some special way to deliver it", but it's vague. Now I can't find the original. It may have been deleted. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I recommend using a multiplexed transport for this: https://docs.sentry.io/platforms/javascript/configuration/micro-frontend-support/#makemultiplexedtransport-api |
Beta Was this translation helpful? Give feedback.
I recommend using a multiplexed transport for this: https://docs.sentry.io/platforms/javascript/configuration/micro-frontend-support/#makemultiplexedtransport-api