Title: Support for multiple DSNs in Sentry.init() · Issue #620 · getsentry/sentry-java · GitHub
Open Graph Title: Support for multiple DSNs in Sentry.init() · Issue #620 · getsentry/sentry-java
X Title: Support for multiple DSNs in Sentry.init() · Issue #620 · getsentry/sentry-java
Description: A Sentry SDK for Java, Android and other JVM languages. - Support for multiple DSNs in Sentry.init() · Issue #620 · getsentry/sentry-java
Open Graph Description: A Sentry SDK for Java, Android and other JVM languages. - Support for multiple DSNs in Sentry.init() · Issue #620 · getsentry/sentry-java
X Description: A Sentry SDK for Java, Android and other JVM languages. - Support for multiple DSNs in Sentry.init() · Issue #620 · getsentry/sentry-java
Opengraph URL: https://github.com/getsentry/sentry-java
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for multiple DSNs in Sentry.init()","articleBody":"The documentation for the Android configuration doesn't seem to outline how to use multiple DSNs.\r\n\r\n // Use the Sentry DSN (client key) from the Project Settings page on Sentry\r\n String sentryDsn = \"https://publicKey:secretKey@host:port/1?options\";\r\n Sentry.init(sentryDsn, new AndroidSentryClientFactory(ctx));\r\n\r\nDiving deeper into the code it shows that storedClient is a static volatile which makes me believe it can't support it. \r\n\r\n public static void setStoredClient(SentryClient client) {\r\n if (storedClient != null) {\r\n logger.warn(\"Overwriting statically stored SentryClient instance {} with {}.\", storedClient, client);\r\n }\r\n\r\n storedClient = client;\r\n }\r\n\r\nThe reasoning behind wanting multiple DNS is because I'm developing a third party library, so I need Sentry to send events to me, while in the App they also have Sentry to send events to their own. \r\n\r\n\r\nIs this possible? \r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/StreethawkNick","@type":"Person","name":"StreethawkNick"},"datePublished":"2018-10-04T00:40:41Z","url":"https://github.com/getsentry/sentry-java/issues/620"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:ee946f48-e8a0-ad53-0ca8-f430a46f3dac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9494:DBD8D:1A80AC:23C1F8:6B0497C0 |
| html-safe-nonce | 1c84d111897308d5813e141ae458bcb96dc6fc8476d16afc34f394e5fc7b6dd2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDk0OkRCRDhEOjFBODBBQzoyM0MxRjg6NkIwNDk3QzAiLCJ2aXNpdG9yX2lkIjoiMTk3NTE1NjA0MTMyMjg5NTI5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 00a919852c5394f0d2c3d7ed3a92bebc044126aa54189a61c8f7f3aca722c70c |
| hovercard-subject-tag | repository:3368190 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/getsentry/sentry-java/issues/620 |
| twitter:image | https://opengraph.githubassets.com/ea4b6b122c7dd1cadfcba3c45c0afdcc81347f2fac8cc6ad1f119b1068629736/getsentry/sentry-java |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea4b6b122c7dd1cadfcba3c45c0afdcc81347f2fac8cc6ad1f119b1068629736/getsentry/sentry-java |
| og:image:alt | A Sentry SDK for Java, Android and other JVM languages. - Support for multiple DSNs in Sentry.init() · Issue #620 · getsentry/sentry-java |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-cache |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width