mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 23:19:10 +00:00
The default for Javascript reporting is that Sentry sets the IP address of the user to the IP address that the report was observed to come from[^1]. Since all reports come through the Zulip server, this results in all reports being "from" one IP address, thus undercounting the number of affected unauthenticated users, and making it difficult to correlate Sentry reports with server logs. Consume the Sentry Envelope format[^2] to inject the submitting client's observed IP address, when possible. This ensures that Sentry reports contain the same IP address that Zulip's server logs do. [^1]: https://docs.sentry.io/platforms/python/guides/logging/enriching-events/identify-user/ [^2]: https://develop.sentry.dev/sdk/envelopes/
3.3 KiB
3.3 KiB