sethtrain / raven-clj

A Clojure interface to Sentry
84 stars 29 forks source link

Set REMOTE_ADDR in HTTP request event payload #35

Open devurandom opened 1 year ago

devurandom commented 1 year ago

The Sentry event payload supports REMOTE_ADDR under the env key:

The :remote-addr key can be added to ring requests using ring.middleware.proxy-headers from ring/ring-headers:0.3.0 that is e.g. enabled with (ring-defaults/wrap-defaults ,,, {:proxy true}) from ring/ring-defaults:0.3.4.

If :remote-addr is not present in the request, we send the empty string and Sentry will not show this field in its web UI.