Pushing events to two Sentry installations simultaneously

Hello, all.

I’m trying to migrate from a Sentry 8.6.0 on-premise installation to a Sentry 9.1.1 installation and was wondering if there was a way to configure my apps (which use a combination of Raven and Sentry SDK for Python) to push events out to both installations at the same time, so that I can test the new one out and slowly migrate users from the former to the latter?

Thank you.

I can’t really comment on your combination of raven and sentry_sdk, but with sentry_sdk we already do this for our own error reporting: https://github.com/getsentry/sentry/blob/e133bc9d00e41afedb77e23478bd2d52aba0f7ae/src/sentry/utils/sdk.py#L78

Instead of having an InternalTransport you would call make_transport twice.

This usecase didn’t pop up often enough for us to document it, yet, so it’s a bit rough around the edges. See also https://github.com/getsentry/sentry-python/issues/198