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

Use Akka IO Unconnected UDP sender. #4

Merged
merged 2 commits into from
Nov 21, 2016
Merged

Use Akka IO Unconnected UDP sender. #4

merged 2 commits into from
Nov 21, 2016

Conversation

dspasojevic
Copy link
Member

No description provided.

@timechanter
Copy link
Contributor

Whats the rational for the change?

@dspasojevic
Copy link
Member Author

Ensures that the underlying unconnected udp resource is cleaned up and reduces the number of allocations by sending directly.

private val graphitePort = graphiteConfig.getInt("port")
private val percentiles: Seq[Integer] = Some(graphiteConfig.getIntList("percentiles")).map(_.asScala).getOrElse(Nil)

private val plaintextEncoder = new GraphitePlaintextEncoder()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why isn't this composable? Will it only work with the PlaintextEncoder?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. Could make configurable. Since we don't need the pickler at the moment didn't add. Changing this to be specified by configuration would be way to go though.

@dspasojevic
Copy link
Member Author

@timechanter renamed sender to be more specific.

@timechanter timechanter merged commit 8dc93d9 into master Nov 21, 2016
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