-
Notifications
You must be signed in to change notification settings - Fork 46
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
Conversation
zipkin/include/zipkin/tracer.h
Outdated
uint32_t collector_port); | ||
ReporterPtr makeHttpReporter( | ||
const char *collector_host, uint32_t collector_port, | ||
SteadyClock::duration reporting_period = std::chrono::milliseconds{500}, |
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.
Are we okay with repeating the defaults here as well as in the Options struct, or do we want to put these somewhere shared?
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.
👍 Like the idea of putting defaults somewhere shared.
zipkin/src/span_buffer.h
Outdated
* @return returns the number of spans that can be held in currently allocated | ||
* storage. | ||
*/ | ||
uint64_t spanCapacity() { return span_buffer_.capacity(); } |
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.
Can this be const?
zipkin/src/zipkin_reporter_impl.h
Outdated
explicit ReporterImpl(TransporterPtr &&transporter); | ||
explicit ReporterImpl(TransporterPtr &&transporter, | ||
SteadyClock::duration reporting_period, | ||
size_t max_buffered_spans); |
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.
We can remove explicit now.
Looks good. I only had a few small suggestions. |
938eac6
to
a4e9c0b
Compare
Co-authored-by: Kevin M Granger <[email protected]>
a4e9c0b
to
f90a2ab
Compare
Changes implemented. |
This is one part of the work from #9.
I'm taking over working on these changes from Mark.