Unless you're a browser-based implementation you should use the full DSN.
getsentry/raven-python/issues/569
The public DSN is only really used for JavaScript, and it causes some different authentication behavior that wouldn't apply to a Java desktop application.