Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sentry only sends an error only one time #5613

Answered by AbhiPrasad
jrefusta asked this question in Q&A
Discussion options

Hi everyone,

I am using Sentry for Javscript and I am executin a function that its called every X seconds of time. Inside that function, there is the following lines:

Sentry.setTag('Test-1', 'test-value')
Sentry.setTag('Test-2', 'test-value')
Sentry.setTag('Test-3, 'test-value')
Sentry.setTag('Test-4', 'test-value')
Sentry.captureMessage('Testing', 'info');

So, when the code is executed, I see only one request of Sentry and If I go to the dashboard the message is only received once.

Do you know which should be a better way to store this information at every X seconds?

Thank you in advance!

You must be logged in to vote

Hey @jrefusta. If you enable debug: true in your Sentry.init, you can see debug logs on what is happening to the SDK.

In this case, Sentry's Dedupe integration is making sure duplicate messages are not being sent to Sentry, to help save quota:

if (_isSameMessageEvent(currentEvent, previousEvent)) {
return true;
}

Sentry is not built to be a logging platform, but if you want to make sure unique messages are captured you can disable the dedupe integration.

Replies: 1 comment 1 reply

Comment options

Hey @jrefusta. If you enable debug: true in your Sentry.init, you can see debug logs on what is happening to the SDK.

In this case, Sentry's Dedupe integration is making sure duplicate messages are not being sent to Sentry, to help save quota:

if (_isSameMessageEvent(currentEvent, previousEvent)) {
return true;
}

Sentry is not built to be a logging platform, but if you want to make sure unique messages are captured you can disable the dedupe integration.

You must be logged in to vote
1 reply
Comment options

Hi Abhi,

Disabling the dedupe integration worked like a charm!
This will work for me, thank you!

Joan.

Answer selected by jrefusta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /