-
-
Notifications
You must be signed in to change notification settings - Fork 444
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
Add optional 'body' field to HttpInterface. #334
Conversation
} | ||
|
||
/** | ||
* Creates a an HTTP element for an {@link com.getsentry.raven.event.Event}. |
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.
"a an"
@@ -226,6 +243,9 @@ public boolean equals(Object o) { | |||
if (serverName != null ? !serverName.equals(that.serverName) : that.serverName != null) { | |||
return false; | |||
} | |||
if (body != null ? !body.equals(that.body) : that.body != null) { |
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.
Clever
* @param maxMessageLength maximum length of the string | ||
* @return trimmed string | ||
*/ | ||
public static String trimString(String string, int maxMessageLength) { |
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.
It might be worth considering ellipisizing this? I'm not sure what behavior is consistent among the other SDKs…?
This is step 1 of #273, which just allows people to provide the
body
manually if they attach their ownHttpInterface
instance.Not sure what size to trim the body to, or if we should allow overrides of that size?