Skip to content

Fix non string indexed attributes passed as log attributes #1882

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

Merged
merged 3 commits into from
Aug 20, 2025

Conversation

stayallive
Copy link
Collaborator

@stayallive stayallive commented Aug 19, 2025

In the future we are going to support "array" types, but for now we don't so I opted to discard the values instead of crashing or converting them. Added the missing tests to cover the case, extensive attribute testing is already done elsewhere so I kept the test case relatively small to not duplicate data type testing from the attribute tests.

Fixes #1881

@stayallive stayallive requested a review from cleptric August 19, 2025 13:44
@stayallive stayallive self-assigned this Aug 19, 2025
@stayallive stayallive added the Bug label Aug 19, 2025
@stayallive stayallive force-pushed the fix-log-attributes-non-string-keys branch from 96279ee to dde1036 Compare August 19, 2025 14:07
@cleptric cleptric merged commit e2e6cea into master Aug 20, 2025
70 of 71 checks passed
@cleptric cleptric deleted the fix-log-attributes-non-string-keys branch August 20, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sentry log aggregation throws exception if log data is a simple array with numeric indices
2 participants