Sentry DSN proxy config using spring sdk

Need Help!!

We have configure sentry dsn with proxy using below ways but we are not successful.

  1. Configured proxy by using sentry.init
    Sentry.init(sentryOptions → {
    sentryOptions.setDsn(“dsn”);
    SentryOptions.Proxy proxy = new SentryOptions.Proxy(“localhost”,“8585”,
    null,null);
    sentryOptions.setProxy(proxy);

  2. Configured using application.properties file
    sentry.proxy.host=localhost
    sentry.proxy.port=8585

  3. Configured using vm args.
    -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8585

Still not able to connect dsn.

Thanks in advance!!

the docs are here Configuration for Java | Sentry Documentation
can you set the debug=true option and copy/paste the logs? what goes wrong? thanks

Thanks for the answer.
Proxy is only working with http_proxy not with https_proxy.