question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`beforeSend` is being ignored when `disablePerformance` is `false` (default)

See original GitHub issue

Package + Version

  • @sentry/browser
  • @sentry/ember
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

6.4.0

Description

We wanted to turn on performance metrics for our project in Sentry as it looked like a pretty neat feature, but… Project is written in Ember, we’re using @sentry/ember and up until now everything worked correctly. After turning on performance metrics (previously we were using disablePerformance: true; option) our hooks stopped working. We’re using beforeSend pretty extensively, like this:

  InitSentryForEmber({
    beforeSend(event, hint) {
      ...
    },
  });

I noticed that if performance metrics are on (or rather disablePerformance is not set), beforeSend hook never fires. I checked it a few times by disabling and enabling metrics, but always with the same result. Looks like enabling performance metrics somehow overrides our settings?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
kiwi-joshcommented, Jul 9, 2021

@netes FYI you may have been experiencing this issue: https://github.com/getsentry/sentry-javascript/pull/3791

1reaction
netescommented, Aug 18, 2021

@netes FYI you may have been experiencing this issue: #3791

Thanks! That was the problem indeed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

using ajax beforeSend to modify data - Stack Overflow
As you can see, the setting processData should to be false. So it can be setted when you do request in $.ajax() or...
Read more >
Guidelines for Performance Monitoring
When set to false NO transactions should be created for HTTP OPTIONS requests. This configuration is most valuable on backend server SDKs. If...
Read more >
botocore/CHANGELOG.rst at develop - GitHub
api-change: ivschat : Adds PendingVerification error type to messaging APIs to block the resource usage for accounts identified as being fraudulent. api-change: ...
Read more >
TFTactics-OverwolfInstaller.exe - Hybrid Analysis
The analysis extracted a file that was identified as malicious ... A class should either have a default constructor, one constructor with arguments...
Read more >
Configuration | Sentry Documentation
ignoreErrors is a list of these messages to be filtered out before being sent to Sentry as ... true (default); false - all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found