Skip to content

Commit 52ec5bc

Browse files
author
Luca Forstner
committed
Add section explaining possible breadcrumb levels
1 parent 62a6b3a commit 52ec5bc

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/includes/set-level/javascript.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ To set the level out of scope, you can call `captureMessage()` per event:
44
Sentry.captureMessage("this is a debug message", "debug");
55
```
66

7+
Available levels are `"fatal"`, `"critical"`, `"error"`, `"warning"`, `"log"`, `"info"`, and `"debug"`.
8+
79
To set the level within scope, you can call `setLevel()`:
810

911
```javascript

src/platforms/common/enriching-events/breadcrumbs.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ The available breadcrumb keys are `type`, `category`, `message`, `level`, `times
4141

4242
</PlatformSection>
4343

44+
<PlatformSection supported={["javascript", "node"]}>
45+
46+
You can choose from the following breadcrumb log levels: `"fatal"`, `"critical"`, `"error"`, `"warning"`, `"log"`, `"info"`, and `"debug"`.
47+
48+
</PlatformSection>
49+
4450
<PlatformSection notSupported={["native", "unreal"]}>
4551

4652
## Automatic Breadcrumbs

src/platforms/javascript/common/troubleshooting/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,12 @@ document.body.addEventListener(
395395
if (event.target.tagName === "IMG") {
396396
Sentry.captureMessage(
397397
`Failed to load image: ${event.target.src}`,
398-
"warning" // message severity level
398+
"warning"
399399
);
400400
} else if (event.target.tagName === "LINK") {
401401
Sentry.captureMessage(
402402
`Failed to load css: ${event.target.href}`,
403-
"warning" // message severity level
403+
"warning"
404404
);
405405
}
406406
},

0 commit comments

Comments
 (0)