You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I write error events from my python component to a sentry project.
The way I do this is by adding to logger a handler which writes to sentry.
Now I'd like to send some events to a different project, depending on some condition (In my case, one of the event sources sends a lot of events and I want to separate them for clarity, but it can be any condition).
Is there a recommended/supported way to do this?
because the way I use it right now, I call sentry_sdk.initjust once with the project URL, and then use sentry_sdk.capture_message to send it.
I saw this issue, but I'm not sure whether the ways suggested there are officially supported? Also, they rely quite a bit on the current implementation. Is there a recommended way to achieve this?
Thanks
The text was updated successfully, but these errors were encountered:
both the solution by saifelse and the one I posted should work. We don't have a recommended way to do this, but are working on serverside solutions to throttle traffic based on conditions at the moment.
Currently, I write error events from my python component to a sentry project.
The way I do this is by adding to logger a handler which writes to sentry.
The code is along those lines:
Now I'd like to send some events to a different project, depending on some condition (In my case, one of the event sources sends a lot of events and I want to separate them for clarity, but it can be any condition).
Is there a recommended/supported way to do this?
because the way I use it right now, I call
sentry_sdk.init
just once with the project URL, and then usesentry_sdk.capture_message
to send it.I saw this issue, but I'm not sure whether the ways suggested there are officially supported? Also, they rely quite a bit on the current implementation. Is there a recommended way to achieve this?
Thanks
The text was updated successfully, but these errors were encountered: