How to clear the assembly/module section?

Hello. I am writing a dotnetcore C# server to send crash reports from my desktop application into Sentry. On sentry.io, for each event/issue I am seeing the server’s assemblies listed. How do I clear out this section?

I am doing something like:

SentrySdk.WithScope( scope => {
    scope.Contexts.Clear();
    sentryEvent.Contexts.Clear();
    sentryEvent.Modules.Clear();
    ....
    SentrySdk.CaptureEvent(sentryEvent);
});

Thank you.

You can remove it in the BeforeSend. This callback is invoked after all the processing on the event is done.

SentrySdk.Init(o => o.BeforeSend = e => {
    e.Modules.Clear();
}});