How to cancel event on the bugsnag in C# I try something like the below but its not work
func(event *bugsnag.Event, config *bugsnag.Configuration) error {
for _, datum := range event.RawData {
if user, ok := datum.(*MyUserInfo); ok {
event.User = &User{Id: user.Id}
}
}
}) ```
You can do it like the below code: