Skip to content

Commit cb3f3cc

Browse files
codydeLms24
andauthored
Update docs/platforms/javascript/common/tracing/span-metrics/examples.mdx
Co-authored-by: Lukas Stracke <[email protected]>
1 parent cc89f52 commit cb3f3cc

File tree

1 file changed

+1
-7
lines changed
  • docs/platforms/javascript/common/tracing/span-metrics

1 file changed

+1
-7
lines changed

docs/platforms/javascript/common/tracing/span-metrics/examples.mdx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,7 @@ Sentry.startSpan(
218218
} catch (error) {
219219
// Record error details
220220
span.setAttribute("error", true);
221-
span.setAttribute("error.type", error.name);
222-
span.setAttribute("error.message", error.message);
223-
span.setAttribute(
224-
"error.is_rate_limit",
225-
error.code === "rate_limit_exceeded"
226-
);
227-
throw error;
221+
Sentry.captureException(error);
228222
}
229223
}
230224
);

0 commit comments

Comments
 (0)