Skip to content

Commit 6bf9f15

Browse files
committed
revamp filtering page
1 parent 0cc0910 commit 6bf9f15

File tree

18 files changed

+135
-58
lines changed

18 files changed

+135
-58
lines changed

src/platform-includes/configuration/before-breadcrumb-hint/javascript.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@ Sentry.init({
1313
},
1414
});
1515
```
16-
17-
For information about which hints are available see <PlatformLink to="/configuration/filtering/#using-hints">hints in JavaScript</PlatformLink>.

src/platform-includes/configuration/before-breadcrumb-hint/python.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ sentry_sdk.init(
1212
before_breadcrumb=before_breadcrumb,
1313
)
1414
```
15-
16-
For information about which hints are available see <PlatformLink to="/configuration/filtering/#using-hints">hints in Python</PlatformLink>.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
`originalException`
2+
3+
: The original exception that caused the Sentry SDK to create the event. This is useful for changing how the Sentry SDK groups events or to extract additional information. Available in error events.
4+
5+
`syntheticException`
6+
7+
: When a string or a non-error object is raised, Sentry creates a synthetic exception so you can get a basic stack trace. This exception is stored here for further data extraction. Available in error events.
8+
9+
`captureContext`
10+
11+
: Additional scope data passed as a second parameter to `captureMessage` and a third parameter to `captureException` and `captureEvent`. Available in message and error events.
12+
13+
`attachments`
14+
15+
: Files to be attached to the outgoing event. Available in message and error events.
16+
17+
Custom Data
18+
19+
: Any other data passed in the second parameter to `captureException` or `captureEvent`. Available in message and error events.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
`originalException`
2+
3+
: The original exception that caused the Sentry SDK to create the event. This is useful for changing how the Sentry SDK groups events or to extract additional information. Available in error events.
4+
5+
`syntheticException`
6+
7+
: When a string or a non-error object is raised, Sentry creates a synthetic exception so you can get a basic stack trace. This exception is stored here for further data extraction. Available in error events.
8+
9+
`captureContext`
10+
11+
: Additional scope data passed as a second parameter to `captureMessage` and a third parameter to `captureException` and `captureEvent`. Available in message and error events.
12+
13+
`attachments`
14+
15+
: Files to be attached to the outgoing event. Available in message and error events.
16+
17+
Custom Data
18+
19+
: Any other data passed in the second parameter to `captureException` or `captureEvent`. Available in message and error events.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
`originalException`
2+
3+
: The original exception that caused the Sentry SDK to create the event. This is useful for changing how the Sentry SDK groups events or to extract additional information. Available in error events.
4+
5+
`syntheticException`
6+
7+
: When a string or a non-error object is raised, Sentry creates a synthetic exception so you can get a basic stack trace. This exception is stored here for further data extraction. Available in error events.
8+
9+
`captureContext`
10+
11+
: Additional scope data passed as a second parameter to `captureMessage` and a third parameter to `captureException` and `captureEvent`. Available in message and error events.
12+
13+
`attachments`
14+
15+
: Files to be attached to the outgoing event. Available in message and error events.
16+
17+
Custom Data
18+
19+
: Any other data passed in the second parameter to `captureException` or `captureEvent`. Available in message and error events.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
`exc_info`
2+
3+
: If you set this hint, then it's an exc info tuple in the form `(exc_type, exc_value, tb)`. This can be used to extract additional information from the original error object.
4+
5+
`log_record`
6+
7+
: This hint is passed to breadcrumbs and contains the log record that created it. It can be used to extract additional information from the original `logging` log record that is not extracted by default. Likewise, it can be useful to discard uninteresting breadcrumbs.
8+
9+
`httplib_request`
10+
11+
: An `httplib` request object for breadcrumbs created from HTTP requests.

src/platform-includes/configuration/before-send-hint/go.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ sentry.Init(sentry.ClientOptions{
1010
},
1111
})
1212
```
13-
14-
For information about which hints are available see [`EventHint` implementation](https://github.com/getsentry/sentry-go/blob/master/interfaces.go).

src/platform-includes/configuration/before-send-hint/javascript.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ Sentry.init({
33
// ...
44

55
beforeSend(event, hint) {
6-
const error = hint.originalException;
76
if (
8-
error &&
9-
error.message &&
10-
error.message.match(/database unavailable/i)
7+
hint.originalException instanceof DOMException &&
8+
hint.originalException.name === "NotSupportedError"
119
) {
12-
event.fingerprint = ["database-unavailable"];
10+
return null;
1311
}
1412
return event;
1513
},
1614
});
1715
```
18-
19-
For information about which hints are available see <PlatformLink to="/configuration/filtering/#using-hints">hints in JavaScript</PlatformLink>.

src/platform-includes/configuration/before-send-hint/python.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ sentry_sdk.init(
1414
before_send=before_send,
1515
)
1616
```
17-
18-
For information about which hints are available see <PlatformLink to="/configuration/filtering/#using-hints">hints in Python</PlatformLink>.

src/platform-includes/configuration/before-send-hint/ruby.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ Sentry.init do |config|
1010
end
1111
end
1212
```
13-
14-
For information about which hints are available see <PlatformLink to="/configuration/filtering/#using-hints">hints in Ruby</PlatformLink>.

0 commit comments

Comments
 (0)