diff --git a/src/platform-includes/configuration/before-breadcrumb-hint/javascript.mdx b/src/platform-includes/configuration/before-breadcrumb-hint/javascript.mdx
index 4fa01e182754a..de374a994b5d2 100644
--- a/src/platform-includes/configuration/before-breadcrumb-hint/javascript.mdx
+++ b/src/platform-includes/configuration/before-breadcrumb-hint/javascript.mdx
@@ -13,5 +13,3 @@ Sentry.init({
},
});
```
-
-For information about which hints are available see hints in JavaScript.
diff --git a/src/platform-includes/configuration/before-breadcrumb-hint/python.mdx b/src/platform-includes/configuration/before-breadcrumb-hint/python.mdx
index ab763e871f15a..ba43c91817b89 100644
--- a/src/platform-includes/configuration/before-breadcrumb-hint/python.mdx
+++ b/src/platform-includes/configuration/before-breadcrumb-hint/python.mdx
@@ -12,5 +12,3 @@ sentry_sdk.init(
before_breadcrumb=before_breadcrumb,
)
```
-
-For information about which hints are available see hints in Python.
diff --git a/src/platform-includes/configuration/before-send-hint-contents/_default.mdx b/src/platform-includes/configuration/before-send-hint-contents/_default.mdx
new file mode 100644
index 0000000000000..b7f4dcbcd18ed
--- /dev/null
+++ b/src/platform-includes/configuration/before-send-hint-contents/_default.mdx
@@ -0,0 +1,19 @@
+`originalException`
+
+: 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.
+
+`syntheticException`
+
+: 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.
+
+`captureContext`
+
+: Additional scope data passed as a second parameter to `captureMessage` and a third parameter to `captureException` and `captureEvent`. Available in message and error events.
+
+`attachments`
+
+: Files to be attached to the outgoing event. Available in message and error events.
+
+Custom Data
+
+: Any other data passed in the second parameter to `captureException` or `captureEvent`. Available in message and error events.
diff --git a/src/platform-includes/configuration/before-send-hint-contents/javascript.mdx b/src/platform-includes/configuration/before-send-hint-contents/javascript.mdx
new file mode 100644
index 0000000000000..b7f4dcbcd18ed
--- /dev/null
+++ b/src/platform-includes/configuration/before-send-hint-contents/javascript.mdx
@@ -0,0 +1,19 @@
+`originalException`
+
+: 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.
+
+`syntheticException`
+
+: 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.
+
+`captureContext`
+
+: Additional scope data passed as a second parameter to `captureMessage` and a third parameter to `captureException` and `captureEvent`. Available in message and error events.
+
+`attachments`
+
+: Files to be attached to the outgoing event. Available in message and error events.
+
+Custom Data
+
+: Any other data passed in the second parameter to `captureException` or `captureEvent`. Available in message and error events.
diff --git a/src/platform-includes/configuration/before-send-hint-contents/node.mdx b/src/platform-includes/configuration/before-send-hint-contents/node.mdx
new file mode 100644
index 0000000000000..b7f4dcbcd18ed
--- /dev/null
+++ b/src/platform-includes/configuration/before-send-hint-contents/node.mdx
@@ -0,0 +1,19 @@
+`originalException`
+
+: 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.
+
+`syntheticException`
+
+: 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.
+
+`captureContext`
+
+: Additional scope data passed as a second parameter to `captureMessage` and a third parameter to `captureException` and `captureEvent`. Available in message and error events.
+
+`attachments`
+
+: Files to be attached to the outgoing event. Available in message and error events.
+
+Custom Data
+
+: Any other data passed in the second parameter to `captureException` or `captureEvent`. Available in message and error events.
diff --git a/src/platform-includes/configuration/before-send-hint-contents/python b/src/platform-includes/configuration/before-send-hint-contents/python
new file mode 100644
index 0000000000000..a92f8854d5644
--- /dev/null
+++ b/src/platform-includes/configuration/before-send-hint-contents/python
@@ -0,0 +1,11 @@
+`exc_info`
+
+: 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.
+
+`log_record`
+
+: 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.
+
+`httplib_request`
+
+: An `httplib` request object for breadcrumbs created from HTTP requests.
diff --git a/src/platform-includes/configuration/before-send-hint/go.mdx b/src/platform-includes/configuration/before-send-hint/go.mdx
index bfbb3e9581854..66c6e082e9a29 100644
--- a/src/platform-includes/configuration/before-send-hint/go.mdx
+++ b/src/platform-includes/configuration/before-send-hint/go.mdx
@@ -10,5 +10,3 @@ sentry.Init(sentry.ClientOptions{
},
})
```
-
-For information about which hints are available see [`EventHint` implementation](https://github.com/getsentry/sentry-go/blob/master/interfaces.go).
diff --git a/src/platform-includes/configuration/before-send-hint/javascript.mdx b/src/platform-includes/configuration/before-send-hint/javascript.mdx
index b6f591024fd8c..69e60d1be94bc 100644
--- a/src/platform-includes/configuration/before-send-hint/javascript.mdx
+++ b/src/platform-includes/configuration/before-send-hint/javascript.mdx
@@ -3,17 +3,13 @@ Sentry.init({
// ...
beforeSend(event, hint) {
- const error = hint.originalException;
if (
- error &&
- error.message &&
- error.message.match(/database unavailable/i)
+ hint.originalException instanceof DOMException &&
+ hint.originalException.name === "NotSupportedError"
) {
- event.fingerprint = ["database-unavailable"];
+ return null;
}
return event;
},
});
```
-
-For information about which hints are available see hints in JavaScript.
diff --git a/src/platform-includes/configuration/before-send-hint/python.mdx b/src/platform-includes/configuration/before-send-hint/python.mdx
index 1ba1755192deb..4e5db3d0a7bb8 100644
--- a/src/platform-includes/configuration/before-send-hint/python.mdx
+++ b/src/platform-includes/configuration/before-send-hint/python.mdx
@@ -14,5 +14,3 @@ sentry_sdk.init(
before_send=before_send,
)
```
-
-For information about which hints are available see hints in Python.
diff --git a/src/platform-includes/configuration/before-send-hint/ruby.mdx b/src/platform-includes/configuration/before-send-hint/ruby.mdx
index f1a514f493721..9b3429109d2c0 100644
--- a/src/platform-includes/configuration/before-send-hint/ruby.mdx
+++ b/src/platform-includes/configuration/before-send-hint/ruby.mdx
@@ -10,5 +10,3 @@ Sentry.init do |config|
end
end
```
-
-For information about which hints are available see hints in Ruby.
diff --git a/src/platform-includes/configuration/breadcrumb-hints/_default.mdx b/src/platform-includes/configuration/breadcrumb-hint-contents/_default.mdx
similarity index 100%
rename from src/platform-includes/configuration/breadcrumb-hints/_default.mdx
rename to src/platform-includes/configuration/breadcrumb-hint-contents/_default.mdx
diff --git a/src/platform-includes/configuration/breadcrumb-hint-contents/javascript.mdx b/src/platform-includes/configuration/breadcrumb-hint-contents/javascript.mdx
new file mode 100644
index 0000000000000..efc7d23264405
--- /dev/null
+++ b/src/platform-includes/configuration/breadcrumb-hint-contents/javascript.mdx
@@ -0,0 +1,15 @@
+`event`
+
+: For breadcrumbs created from browser events, the Sentry SDK often supplies the event to the breadcrumb as a hint. This can be used to extract data from the target DOM element into a breadcrumb, for example.
+
+`level` / `input`
+
+: For breadcrumbs created from console log interceptions. This holds the original console log level and the original input data to the log function.
+
+`response` / `input`
+
+: For breadcrumbs created from HTTP requests. This holds the response object (from the fetch API) and the input parameters to the fetch function.
+
+`xhr`
+
+: For breadcrumbs created from HTTP requests made using the legacy `XMLHttpRequest` API. This holds the original `xhr` object.
diff --git a/src/platform-includes/configuration/breadcrumb-hints/node.mdx b/src/platform-includes/configuration/breadcrumb-hint-contents/node.mdx
similarity index 100%
rename from src/platform-includes/configuration/breadcrumb-hints/node.mdx
rename to src/platform-includes/configuration/breadcrumb-hint-contents/node.mdx
diff --git a/src/platforms/common/configuration/filtering/hint-contents.mdx b/src/platforms/common/configuration/filtering/hint-contents.mdx
new file mode 100644
index 0000000000000..b2c639e65fdf6
--- /dev/null
+++ b/src/platforms/common/configuration/filtering/hint-contents.mdx
@@ -0,0 +1,29 @@
+---
+title: Hints
+sidebar_order: 900
+description: "Learn about what's included in Event and Breadcrumb hints."
+notSupported:
+ - apple
+ - dotnet
+ - perl
+---
+
+# Hints
+
+Event and Breadcrumb hints are objects containing information used to put together an event or a breadcrumb. These hints are passed as the `hint` parameter to `before_send`, `before_breadcrumb`, and event processors.
+
+## Event Hints
+
+Hints for events have the following properties:
+
+`eventId`
+
+: A unique identifier for the event, searchable in the Sentry UI. Available in message and error events.
+
+
+
+## Hints for Breadcrumbs
+
+Hints for breadcrumbs have the following properties:
+
+
diff --git a/src/platforms/common/configuration/filtering.mdx b/src/platforms/common/configuration/filtering/index.mdx
similarity index 51%
rename from src/platforms/common/configuration/filtering.mdx
rename to src/platforms/common/configuration/filtering/index.mdx
index 994ce8f38b4cc..625d09951c540 100644
--- a/src/platforms/common/configuration/filtering.mdx
+++ b/src/platforms/common/configuration/filtering/index.mdx
@@ -14,11 +14,15 @@ We also offer [Inbound Filters](/product/data-management-settings/filtering/) to
## Filtering Error Events
-Configure your SDK to filter error events by using the callback method and configuring, enabling, or disabling integrations.
+You can configure your SDK to filter events in a number of ways:
+
+- by using the callback method
+- by using event processors,
+- by configuring, enabling, or disabling integrations.
### Using
-All Sentry SDKs support the callback method. is called immediately before the event is sent to the server, so it’s the final place where you can edit its data. It receives the event object as a parameter, so you can use that to modify the event’s data or drop it completely (by returning `null`) based on custom logic and the data available on the event.
+All Sentry SDKs support the callback method. is called immediately before the event is sent to the server, so it's the final place you can edit an event's data. It receives the event object as a parameter, which you can use to modify the event's data or to drop the event completely (by returning `null`) based on custom logic and the data available on the event.
@@ -26,56 +30,31 @@ Note also that breadcrumbs can be filtered, as discussed in [our Breadcrumbs doc
-#### Event Hints
-
-The callback is passed both the `event` and a second argument, `hint`, that holds one or more hints.
-
-Typically a `hint` holds the original exception so that additional data can be extracted or grouping is affected. In this example, the fingerprint is forced to a common value if an exception of a certain type has been caught:
-
-
-
-When the SDK creates an event or breadcrumb for transmission, that transmission is typically created from some sort of source object. For instance, an error event is typically created from a log record or exception instance. For better customization, SDKs send these objects to certain callbacks (, or the event processor system in the SDK).
-
-
-
-
+### Hints
-### Using Hints
+Both event processors and the callback are passed two parameters: the event object and a second argument, `hint`, which holds extra data about the event. Similarly, is passed the breadcrumb and a `hint` object.
-Hints are available in two places:
+When the SDK creates an event or breadcrumb, it's typically created from some sort of source object. For instance, a message event is typically created from a log record and an error event is typically created from an exception instance. Breadcrumbs may be created from XHR requests or user interactions. For better customization, SDKs pass these objects - the message which was logged, the exception which was thrown, the XHR request object, the DOM element and event name, etc. - in the hint.
-1. /
-2. `eventProcessors`
+For example, for error events, `hint` holds the original exception so that additional data can be extracted or grouping behavior can be modified.
-Event and breadcrumb `hints` are objects containing various information used to put together an event or a breadcrumb. Typically `hints` hold the original exception so that additional data can be extracted or grouping can be affected.
+In the snippet below, the event is conditionally dropped based on data in the hint:
-For events, hints contain properties such as `event_id`, `originalException`, `syntheticException` (used internally to generate cleaner stack trace), and any other arbitrary `data` that you attach.
-
-For breadcrumbs, the use of `hints` is implementation dependent. For XHR requests, the hint contains the xhr object itself; for user interactions the hint contains the DOM element and event name and so forth.
+
-In this example, the fingerprint is forced to a common value if an exception of a certain type has been caught:
+In this snippet, the fingerprint is forced to a common value if an exception of a certain type has been caught:
-#### Hints for Events
-
-`originalException`
-
-: 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.
-
-`syntheticException`
-
-: 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.
-
-#### Hints for Breadcrumbs
-
-
+To see the properties available in the `hint` object, see Hints.
-### Decluttering Sentry
+### Filtering by Script URL, Error Message, or Logger
+
+Depending on the SDK, you may be able to filter events automatically based on certain criteria.
diff --git a/src/platforms/common/enriching-events/breadcrumbs.mdx b/src/platforms/common/enriching-events/breadcrumbs.mdx
index 15a1b8b71a4c2..cb5e99200d2e8 100644
--- a/src/platforms/common/enriching-events/breadcrumbs.mdx
+++ b/src/platforms/common/enriching-events/breadcrumbs.mdx
@@ -73,7 +73,7 @@ This hook is passed an already assembled breadcrumb and, in some SDKs, an option
-For information about what can be done with the hint, see Filtering Events.
+For information about what can be done with the hint, see Filtering Events.
diff --git a/src/platforms/common/enriching-events/event-processors.mdx b/src/platforms/common/enriching-events/event-processors.mdx
index 2a9d82387ef01..dac88e2f1dd88 100644
--- a/src/platforms/common/enriching-events/event-processors.mdx
+++ b/src/platforms/common/enriching-events/event-processors.mdx
@@ -23,7 +23,7 @@ notSupported:
---
With `eventProcessors` you can hook into the process of enriching the event with additional data. You can add your own `eventProcessor` on the current scope. The difference between `beforeSend` and `eventProcessors` is that `eventProcessors` run on the scope level whereas `beforeSend` runs globally, no matter which scope you're in.
-Also, `eventProcessors` optionally receive the hint (see: hints).
+Also, `eventProcessors` optionally receive the hint (see: hints).
```javascript
// This will be set globally for every succeeding event send
diff --git a/src/platforms/javascript/common/configuration/integrations/rrweb.mdx b/src/platforms/javascript/common/configuration/integrations/rrweb.mdx
index 2cf86db1917ca..8e2f7e9c0db42 100644
--- a/src/platforms/javascript/common/configuration/integrations/rrweb.mdx
+++ b/src/platforms/javascript/common/configuration/integrations/rrweb.mdx
@@ -12,7 +12,7 @@ Sentry provides a proof-of-concept integration with [rrweb](https://www.rrweb.io
-For information about which hints are available see hints in JavaScript
+For information about which hints are available see hints in JavaScript
Replays utilize Attachments.