giveth-next
giveth-next copied to clipboard
Improve Sentry and Segment Logs in frontend
The entry was created for this donation had incorrect value for projectId
and userId
. It was probably created manually and the values were field instead of each other.
However, the reason behind missing entities like this is not clear yet. We don't have any clue and there isn't anything recorded in log records.
I and @mohammadranjbarz deduced that the only temporary solution is to add segment/sentry log around the logics in both front-end and back-end in order to have some valuable information next time it happens
Originally posted by @aminlatifi in https://github.com/Giveth/giveth-next/issues/626#issuecomment-1008066470
We already had a logger working with sentry but not in all exceptions.
I'll add this for as many as I find specially the project donation - for the typescript version we must make sure all catch has the logger set there