-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event ingestion: Mechanism.Type is missing #896
Comments
You are right, this Type is never set. Currently |
@cleptric I inspected other SDKs for this - for example in the javascript one it either sets this type as generic, angular, cloudflare. The easiest way to resolve it would be to set it to |
Just using |
In Sentry's docs on event payloads - exception mechanism it says that the "type" attribute is required.
However, sentry-go v0.29.1 sometimes sends an event that has mechanism included, but the type is omitted.
Reproduction:
main.go
:It yields such a JSON payload:
Maybe it'd be better to remove
json:"type,omitempty"
from Mechanism.Type?————
I solved that myself by adding such a
BeforeSend
tosentry.ClientOptions
:(can also be done with
sentry.ConfigureScope
andscope.AddEventProcessor
)The text was updated successfully, but these errors were encountered: