Hi! If you are using the on-premise version of Sentry, SENTRY_USE_X_FORWARDED_FOR is the setting you are looking for. Just set that to True in your sentry.conf.py file and you should be good. Sorry, we don’t have great docs around that.
That said, be warned that this will allow setting any random IP address by a potentially malicious client so use it at your own risk.
If this is on sentry.io, please let us know and we may need to investigate it further.