Giveth / giveth-next

Giveth 2.0 implementation in NextJS
https://next.giveth.io
GNU General Public License v3.0
20 stars 13 forks source link

Improve Sentry and Segment Logs in frontend #631

Open MoeNick opened 2 years ago

MoeNick commented 2 years ago

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

mateodaza commented 2 years ago

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