Skip to content
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

Any way to send more than 512 characters ? #483

Open
erwan-joly opened this issue Mar 13, 2023 · 3 comments
Open

Any way to send more than 512 characters ? #483

erwan-joly opened this issue Mar 13, 2023 · 3 comments

Comments

@erwan-joly
Copy link

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 erwan-joly changed the title Anyway to send more than 512 characters ? Any way to send more than 512 characters ? Mar 16, 2023
@darcythomas
Copy link
Contributor

Why are you wanting to send a longer message?

What kind of issue is a short message giving you?

@erwan-joly
Copy link
Author

erwan-joly commented Aug 2, 2023

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

@phillip-haydon
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants