Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Conversation

@drichelson
Copy link
Contributor

Add event sampling. Name threads.

* @param samplingInterval the sampling interval.
* @return the builder
*/
public Builder samplingInterval(int samplingInterval) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copied the semantics in the go client, but putting myself in the user's shoes I prefer using a percentage value here (and everywhere else) in the form of a floating point value from 0 to 1.0 where at 1.0 all events get sent and at 0.0 none get sent. I think consistency is more important, so we should leave it or change it everywhere.

@drichelson
Copy link
Contributor Author

Corrected target branch from #43


repositories {
mavenCentral()
mavenLocal()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

order matters here, so we look first locally, then elsewhere.

@jkodumal
Copy link
Contributor

jkodumal commented Apr 9, 2016

👍

@drichelson drichelson merged commit c7c7e3b into dr/bounded Apr 9, 2016
@drichelson drichelson deleted the dr/eventSampling branch April 9, 2016 20:35
@drichelson drichelson mentioned this pull request Apr 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants