sentry-java
sentry-java copied to clipboard
Using `setContext` on transaction fails ingestion for simple types
Integration
sentry
Java Version
any
Version
7.8.0
Steps to Reproduce
Use setContext on transaction and set any of String, Boolean or number as value.
Expected Result
Event is ingested
Actual Result
Ingestion doesn't work for these values.
In Scope.java we wrap simple values with a HashMap and key value. See https://github.com/getsentry/sentry-java/blob/7b7964f423f45db68b01e66b1b6ce08dacb3e7b6/sentry/src/main/java/io/sentry/Scope.java#L614-L690
@adinauer is the event just dropped, or just the values that are set incorrectly are not showing up?
The simple values in Contexts are dropped and the ingested JSON and UI have some info about it but the event shows up in Sentry.