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

Make reporter buffer size and period configurable. #10

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

KevinMGranger
Copy link
Contributor

This is one part of the work from #9.

I'm taking over working on these changes from Mark.

uint32_t collector_port);
ReporterPtr makeHttpReporter(
const char *collector_host, uint32_t collector_port,
SteadyClock::duration reporting_period = std::chrono::milliseconds{500},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are we okay with repeating the defaults here as well as in the Options struct, or do we want to put these somewhere shared?

Copy link
Owner

Choose a reason for hiding this comment

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

👍 Like the idea of putting defaults somewhere shared.

* @return returns the number of spans that can be held in currently allocated
* storage.
*/
uint64_t spanCapacity() { return span_buffer_.capacity(); }
Copy link
Owner

Choose a reason for hiding this comment

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

Can this be const?

explicit ReporterImpl(TransporterPtr &&transporter);
explicit ReporterImpl(TransporterPtr &&transporter,
SteadyClock::duration reporting_period,
size_t max_buffered_spans);
Copy link
Owner

Choose a reason for hiding this comment

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

We can remove explicit now.

@rnburn
Copy link
Owner

rnburn commented Feb 23, 2018

Looks good. I only had a few small suggestions.

@KevinMGranger
Copy link
Contributor Author

Changes implemented.

@rnburn rnburn merged commit 482723c into rnburn:master Feb 23, 2018
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.

3 participants