Per this comment on rollbar.report_message:
|
extra_data: dictionary of params to include with the message. 'body' is reserved. |
the
body key in the
extra_data kwarg is "reserved". I discovered the hard way that, if you happen to pass a dict with a
body key, the message you intended to report is replaced with that raw JSON. This was quite difficult to track down, as the behavior did not communicate the "reserved"ness of
body - nor is it mentioned in the documentation; only in the docstring.
I'd like to request that this reserved key be changed to something that's harder to accidentally collide with - or at least for pyrollbar to raise an exception or print a warning or something letting me know what I did.
Per this comment on
rollbar.report_message:pyrollbar/rollbar/__init__.py
Line 427 in 33ef2e7
bodykey in theextra_datakwarg is "reserved". I discovered the hard way that, if you happen to pass a dict with abodykey, the message you intended to report is replaced with that raw JSON. This was quite difficult to track down, as the behavior did not communicate the "reserved"ness ofbody- nor is it mentioned in the documentation; only in the docstring.I'd like to request that this reserved key be changed to something that's harder to accidentally collide with - or at least for pyrollbar to raise an exception or print a warning or something letting me know what I did.