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
I’m looking to enhance some issue titles by modifying them based on their error messages. I found it quite straightforward to implement this using the fingerprint rule in the Sentry UI. For instance, I created a rule like this: message:"status 40*" -> user-fault-errors, title="User Error: Client Status 40x"
However, I’m having trouble locating the relevant information to achieve this using the SDK.
Am I looking for something that can't be done using the SDK?
The text was updated successfully, but these errors were encountered:
There is no SDK API for this specifically. What you can do is have a look at how Sentry the UI computes the title from SDK event payload. Essentially, it first extracts some parts and then uses this to determine the title. Looks like it uses the exception dict to do this.
You have the whole SDK-side event payload available in before_send and any modifications done to it there will be persisted, so you could use this to modify the exception information in the payload. It's not really something I'd recommend though since I imagine it might mess up other parts of the UI that display data from the exception dict.
I’m looking to enhance some issue titles by modifying them based on their error messages. I found it quite straightforward to implement this using the fingerprint rule in the Sentry UI. For instance, I created a rule like this:
message:"status 40*" -> user-fault-errors, title="User Error: Client Status 40x"
However, I’m having trouble locating the relevant information to achieve this using the SDK.
Am I looking for something that can't be done using the SDK?
The text was updated successfully, but these errors were encountered: