sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Give Fetch/XHR breadcrumbs a log level based on status code

Open lforst opened this issue 1 year ago • 0 comments

Higher order tracking issue: https://github.com/getsentry/team-sdks/issues/100

Description

It came up that the breadcrumbs we create for 4xx and 5xx fetch requests are pretty tame and don't stick out. We can sorta fix this by changing the log level of the breadcrumbs based on the response status code:

  • 5xx should probably be error
  • 4xx should probably be warning/error

lforst avatar Aug 13 '24 16:08 lforst