You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/dotnet/common/configuration/options.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,26 +208,26 @@ Once enabled, this feature automatically captures HTTP client errors, like bad r
208
208
209
209
These options can be used to hook the SDK in various ways to customize the reporting of events.
210
210
211
-
<ConfigKeyname="before-send">
211
+
<ConfigKeyname="set-before-send">
212
212
213
213
This function is called with an SDK-specific message or error event object, and can return a modified event object, or `null` to skip reporting the event. This can be used, for instance, for manual PII stripping before sending.
214
214
215
-
By the time <PlatformIdentifiername="before-send" /> is executed, all scope data has already been applied to the event. Further modification of the scope won't have any effect.
215
+
By the time <PlatformIdentifiername="set-before-send" /> is executed, all scope data has already been applied to the event. Further modification of the scope won't have any effect.
216
216
217
217
</ConfigKey>
218
218
219
-
<ConfigKeyname="before-breadcrumb">
219
+
<ConfigKeyname="set-before-breadcrumb">
220
220
221
221
This function is called with an SDK-specific breadcrumb object before the breadcrumb is added to the scope. When nothing is returned from the function, the breadcrumb is dropped. To pass the breadcrumb through, return the first argument, which contains the breadcrumb object.
222
222
The callback typically gets a second argument (called a "hint") which contains the original object from which the breadcrumb was created to further customize what the breadcrumb should look like.
223
223
224
224
</ConfigKey>
225
225
226
-
<ConfigKeyname="before-send-transaction">
226
+
<ConfigKeyname="set-before-send-transaction">
227
227
228
228
This function is called with an SDK-specific transaction object, and can return a modified transaction object, or `null` to skip reporting the transaction. This can be used, for instance, for manual PII-stripping before sending.
229
229
230
-
By the time <PlatformIdentifiername="before-send-transaction" /> is executed, all scope data has already been applied to the event and further modification of the scope won't have any effect.
230
+
By the time <PlatformIdentifiername="set-before-send-transaction" /> is executed, all scope data has already been applied to the event and further modification of the scope won't have any effect.
Copy file name to clipboardExpand all lines: docs/platforms/unity/configuration/options/index.mdx
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,21 +208,41 @@ These options can be used to hook the SDK in various ways to customize the repor
208
208
The callbacks you set as hooks will be called on the thread where the event happened. So you can only use
209
209
thread-safe APIs and only use Unity-specific APIs after you've checked that you're on the UI thread.
210
210
211
-
<ConfigKeyname="before-send">
211
+
<ConfigKeyname="set-before-send">
212
212
213
213
This function is called with an SDK-specific message or error event object, and can return a modified event object, or `null` to skip reporting the event. This can be used, for instance, for manual PII stripping before sending.
214
214
215
-
By the time <PlatformIdentifiername="before-send" /> is executed, all scope data has already been applied to the event. Further modification of the scope won't have any effect.
215
+
By the time <PlatformIdentifiername="set-before-send" /> is executed, all scope data has already been applied to the event. Further modification of the scope won't have any effect.
216
216
217
217
</ConfigKey>
218
218
219
-
<ConfigKeyname="before-breadcrumb">
219
+
<ConfigKeyname="set-before-breadcrumb">
220
220
221
221
This function is called with an SDK-specific breadcrumb object before the breadcrumb is added to the scope. When nothing is returned from the function, the breadcrumb is dropped. To pass the breadcrumb through, return the first argument, which contains the breadcrumb object.
222
222
The callback typically gets a second argument (called a "hint") which contains the original object from which the breadcrumb was created to further customize what the breadcrumb should look like.
223
223
224
224
</ConfigKey>
225
225
226
+
<ConfigKeyname="set-before-send-transaction">
227
+
228
+
This function is called with an SDK-specific transaction object, and can return a modified transaction object, or `null` to skip reporting the transaction. This can be used, for instance, for manual PII-stripping before sending.
229
+
230
+
By the time <PlatformIdentifiername="set-before-send-transaction" /> is executed, all scope data has already been applied to the event and further modification of the scope won't have any effect.
231
+
232
+
</ConfigKey>
233
+
234
+
<ConfigKeyname="set-before-capture-screenshot">
235
+
236
+
A callback function that controls screenshot capture behavior. Return `false` to prevent a screenshot from being captured for a specific event. This allows for fine-grained control over when screenshots are included with error reports.
A callback function that controls view hierarchy capture behavior. Return `false` to prevent the view hierarchy from being captured for a specific event. This allows for fine-grained control over when view hierarchies are included with error reports.
243
+
244
+
</ConfigKey>
245
+
226
246
## Transport Options
227
247
228
248
Transports are used to send events to Sentry. Transports can be customized to some degree to better support highly specific deployments.
0 commit comments