It’s not clear to me from the samples or your documentation how I can send additional information to a custom
ISentryEventExceptionProcessor since they seem to be called by the SentryClient in the SDK instead of me having to consume them in my application directly. While that is a great design (since the SDK calls it for me), I’d like to know what the recommendation is to add additional info to the
SentryEvent . I see the samples just adding hardcoded strings in the
Process(Exception, SentryEvent) methods, but I need to pass a DTO so that it can be serialized with the
There are two options I can think of but unsure if there is a better way to do this.
- Stuff this data in the
HttpContext.Itemsand then pull it out in the EventProcessor via an injected
IHttpContextAccessor. Though this seems brittle and I try to avoid using
- Stuff this extra data in the Exception’s
Datadictionary. However, this will only work for a custom
Is there a recommendation on how to accomplish this?