-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c is not a function when defining custom beforeSend function #349
Comments
|
|
This sounds wrong. That option takes a plain object with integration configuration, not the integration class, which is what you are getting by importing it.
See https://docs.sentry.io/clients/javascript/config/ . It seems like strings are case-sensitive but you can use regexp to make things case-insensitive.
You could try declaring that function using: |
|
Just do |
same here, I've tried the previous code without the
full config it's in #350
|
Post your actual configuration. The client integrations config doesn't seem relevant to your issue. And your issue is likely just that your beforeSend handler is crashing somewhere because of missing null check. |
I've tried both:
and
the beforeSend it's the same as the one above, I wanted to try that piece of code for me as well |
I'm asking about how you defined the I guess |
I've solved the issue by just using the |
Closing then. I think it would work better with later versions of Nuxt. There were some fixes around serializing functions in the config. In Nuxt 2.15.8 all cases worked correctly when I've tested. |
Hi, I'm currently trying to customize sentry to prevent the report of several messages that are very noisy in my dashboard. First I tried writing all the errors I want to disable to be tracked inside the ignoreErrors section of config, but it did nothing, after that I tried to make a custom beforeSend function inside the sentry.config attribute, but when building the app it throwed me the same error reported here although I have the latests version. Finally i ended up writing my custom beforeSend function inside the publicRuntimeConfig as one of the comments in this repo issues section said, but now i'm getting this error:
The build finishes well, but this error appears each 5 seconds in my sentry console. How to solve it?
Version
@nuxtjs/sentry: 5.1.3
nuxt: 2.15.4
Sentry configuration
Steps to reproduce
Just create a nuxt project with the versions and settings mentioned above.
What is Expected?
The expected behavior is that sentry ignored the array of errors I've manually set and not show the
c is not a function
error,What is actually happening?
I'm receiving hundreds of times the
c is not a function
error.I'm new to Sentry, so if I'm doing it bad, please explain me how to avoid Sentry reports of the array of error I have set.
Thanks a lot.
The text was updated successfully, but these errors were encountered: