raygun4js icon indicating copy to clipboard operation
raygun4js copied to clipboard

Any way to send more than 512 characters ?

Open erwan-joly opened this issue 1 year ago • 3 comments

Hi, the payload seems to be truncated at 512 characters. I believe it's coming from here: https://github.com/MindscapeHQ/raygun4js/blob/master/src/raygun.js#L863

Is there any way to change this number via an option ?

erwan-joly avatar Mar 13 '23 22:03 erwan-joly

Why are you wanting to send a longer message?

What kind of issue is a short message giving you?

darcythomas avatar Aug 02 '23 22:08 darcythomas

Throwing the whole network request payload get truncated not ideal to investigate what’s happening. 512 character is very small if we want something like a call stack. The c# lib seems to be able to send a lot more characters. My understanding is that Raygun support body of maximum size 128KB so about 256x time more than the raygun js

erwan-joly avatar Aug 02 '23 23:08 erwan-joly

@erwan-joly I may be misunderstanding this, but we only truncate the message, the whole call stack is left intact.

https://github.com/MindscapeHQ/raygun4js/blob/master/src/raygun.js#L870

https://github.com/MindscapeHQ/raygun4js/blob/master/src/raygun.js#L891

So I'm unsure why you would need more than 512 characters in the message itself.

phillip-haydon avatar May 30 '24 23:05 phillip-haydon