I have a retool cloud application that’s hooked up to Sentry. Sentry provides the ability to specify custom tags. How can I do that within Retool? It doesn’t look like the Sentry sdk is loaded in the browser, unless it’s packaging up in a way that’s not evident, so I can’t call something like Sentry.setTag("fun_little_tag", "hi"); from js.
Looking at the network calls, I see a call to https://<something>.retool.com/api/appObservability/errors. I wonder if there is a way to populate a blob in there that would surface in Sentry.
Hey @lkiss - there's currently no way to for individual organizations to modify the tags that get piped to Sentry, but that would be a nice addition. I've documented the request internally and will provide an update as soon asI can. In the meantime, you can see a full list of tags here.
Out of curiosity, what additional info are you thinking about adding?
Sentry is generally used for both “uncaught” errors and when you want to report an error. Retool’s integration with Sentry is geared towards the former, which we utilize. For the latter, when I want to report an error myself, I am able to do so by forcing an unhandled error, but I want to provide additional context when I do so. The specific tags would be specific to the context of the error. So, if there a remote resource not available, I could add the specific resource and entity as tags. For a workflow, I pass “parent workflow” down to other workflows that it kicks off, so I can log the “originating” workflow id; this could be tag.
Generally speaking - the Sentry integration within Retool isn’t that great. Does it report errors? Yes. But they almost always get grouped together within Sentry, which makes them less helpful. Sentry grouping can be controlled – however, most of that control must come from the client side (from their sentry sdk) of the sentry integration, not within sentry itself.