Using @sentry/node and captureMessage, I’m seeing inconsistent results in the dashboard.
I have a function that is called 5 times, 1 minute apart. Each time it sends something like Sentry.captureMessage(
{messageId} - {attempt})
If I run this several times, I’ll see several messages in the dashboard, like:
abc - 2
xyz - 1
rgb - 3
The attempt numbers do not match the number of events in the Sentry dashboard. For example, ‘rgb - 3’ was the third event sent to Sentry, but Sentry says there is only 1 event for that message.
I can see the full aws logs to convince myself the function ran as expected, but the Sentry dashboard does not consistently update. I don’t know if it’s deduping some messages but not others, or where the inconsistency is coming from.
I’m open to user error, so please, any suggestions are welcome.
I started a related github issue here with more info here. The issue is asking if captureMessage should use the scope fingerprint, which it does not seem to do. But this inconsistency seems like it may be a separate issue.