-
Notifications
You must be signed in to change notification settings - Fork 409
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
fix: Updated api.recordLogEvent
to no longer truncate the message key in log event
#2949
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2949 +/- ##
==========================================
- Coverage 97.35% 97.30% -0.05%
==========================================
Files 317 317
Lines 48625 48690 +65
==========================================
+ Hits 47337 47379 +42
- Misses 1288 1311 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
c63362e
to
be1332a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding the test!
api.recordLogEvent
to no longer truncate the message key in log event
See the related issue: fixes #2921
In short:
logEvent.message
can either be a simple string message, in which truncating is OK, but it can also be the full JSON log (stringified), in which case it mustn't be truncated.