Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Graylog Provider#4

Merged
jahunt1 merged 5 commits into
alignops:masteralignops/AnalyticsKit-Android:masterfrom
jahunt1:graylogjahunt1/AnalyticsKit-Android:graylogCopy head branch name to clipboard
Sep 19, 2017
Merged

Graylog Provider#4
jahunt1 merged 5 commits into
alignops:masteralignops/AnalyticsKit-Android:masterfrom
jahunt1:graylogjahunt1/AnalyticsKit-Android:graylogCopy head branch name to clipboard

Conversation

@jahunt1

@jahunt1 jahunt1 commented Jul 18, 2017

Copy link
Copy Markdown
Contributor
  • Changed attribute accessor in AnalyticsEvent to return Map instead of HashMap
  • new provider for Graylog HTTP inputs
  • some Javadoc updates

@jahunt1 jahunt1 requested review from jjamminjim and simon1867 July 18, 2017 14:27
//noinspection unchecked
sb.append(jsonAttribute).append("\": ").append(getJsonFromMapRecursive((Map<String, Object>) attributeValue));
}
else if (attributeValue instanceof Integer ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like you could have an isNumber() method that would return a boolean and execute this OR statement and use it in the 3 spots that do this check

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such better. Very wisdom.


try
{
Thread.sleep(50);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a need to sleep here if you're having the lock wait on the next couple of lines?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. At one point I was validating that we get a positive duration on the timed event, but now that the event gets serialized I don't care about parsing the JSON I would get out of the callback.

@jahunt1 jahunt1 merged commit c2657ce into alignops:master Sep 19, 2017
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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.