添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Sometimes in event breadcrumbs we see “[0]”. Here’s an example:

Screen Shot 2017-01-10 at 6.11.44 PM.png 1992×260 40.7 KB

I think we usually see HTTP response codes in this spot. Does 0=200?

Yeah @blocka , I think that’s the most common case it happens for us;
we have an app in Salesforce that’s loaded in an iFrame. Our customers open a page in salesforce and navigate away again before our app is fully loaded and this triggers quite some [0] logs.

I wonder if there’s a way not to log these entries.

You can write a callback that inspects the event payload for this breadcrumb and remove it: https://docs.sentry.io/platforms/javascript/#filter-events--custom-logic

But we don’t consider it a “bug” that these breadcrumbs appear. It can be valuable to understand if a request was canceled leading up to an error.