Skip to content

Commit cc89f52

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

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ Sentry.startSpan(
6060
} catch (error) {
6161
// Record failure information
6262
span.setAttribute("upload.success", false);
63-
span.setAttribute("upload.error_type", error.name);
64-
span.setAttribute("upload.error_message", error.message);
65-
66-
throw error;
63+
Sentry.captureException(error);
6764
}
6865
}
6966
);

0 commit comments

Comments
 (0)