I’m working on a webapp (.NET Framework 4.7) that currently uses the Raven client for Sentry. I am trying to move us off that to the new .NET SDK.
In the Raven client, we used
LogScrubbers which executed some of our scrubbing code against the JSON when the
HttpRequester.RequestAsync() method was called (if I’m reading the Raven source correctly).
The new SDK has a
BeforeSend capability that allows a callback (my code) to be executed however at that point I only have the
SentryEvent, not serialized JSON. I don’t think that the new SDK has any extension points further along the processing pipeline than
Is the recommended approach to replicate the legacy
LogScrubber capability for me to take the
SentryEvent and handle the scrubbing on any public properties (and their sub-properties) or is there something that I am missing?