So to recap for anyone Google’ing and ending up here, there were two issues here:
-
Old SDKs need to use the-formatted
http://foo:bar@localhost:9000/123
DSN. This is available in Project Settings -> Client Keys (DSN) -> DSN (Deprecated). -
To send events from another Docker container:
- Connect them on the same network with
docker network connect <sentry-network> <container-name>
.
By default, isonpremise_default
. ` is whatever your other container is named. - In the DSN, replace
localhost
from what Sentry provides and instead use the sentry service name, visible indocker-compose.yml
, which is probablyweb
.
- Connect them on the same network with
Thanks to @BYK and @zeeg for guiding me towards the solution