-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Close span writer in standalone #863
Close span writer in standalone #863
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@@ -130,6 +131,13 @@ func main() { | |||
|
|||
select { | |||
case <-signalsChannel: | |||
if closer, ok := spanWriter.(io.Closer); ok { |
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.
what about spanReader, dependencyReader, etc. might be easier to register everything that implements the io.Closer interface during initialization and iterate over them and close them
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.
readers don't implement closer. This is just port from collector main.
Codecov Report
@@ Coverage Diff @@
## master #863 +/- ##
=======================================
Coverage ? 100%
=======================================
Files ? 121
Lines ? 5991
Branches ? 0
=======================================
Hits ? 5991
Misses ? 0
Partials ? 0 Continue to review full report at Codecov.
|
* master: Add back quotes Adding CONTRIBUTING_GUIDELINES.md (jaegertracing#864) Close span writer in standalone (jaegertracing#863) Fix Process IP problem/inconsistency (jaegertracing#821) (jaegertracing#865) Use NewSpanID()/NewTraceID() instead of type-specific intializations (jaegertracing#861) Do not create duplicate child-of reference from parentSpanId (jaegertracing#860) Switch to codecov (jaegertracing#857) Log configuration options for memory storage (jaegertracing#852) Add jpkrohling to maintainers / code owners (jaegertracing#851)
Signed-off-by: Pavol Loffay ploffay@redhat.com