Skip to content

Commit de80151

Browse files
authored
fix(.NET): Added BeforeSendTransaction to common options (#10855)
1 parent 63dac3e commit de80151

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: docs/platforms/dotnet/common/configuration/options.mdx

+8
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,14 @@ The callback typically gets a second argument (called a "hint") which contains t
226226

227227
</ConfigKey>
228228

229+
<ConfigKey name="before-send-transaction">
230+
231+
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.
232+
233+
By the time <PlatformIdentifier name="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.
234+
235+
</ConfigKey>
236+
229237
## Transport Options
230238

231239
Transports are used to send events to Sentry. Transports can be customized to some degree to better support highly specific deployments.

0 commit comments

Comments
 (0)