Skip to content
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

Merged

Conversation

pavolloffay
Copy link
Member

Signed-off-by: Pavol Loffay ploffay@redhat.com

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@@ -130,6 +131,13 @@ func main() {

select {
case <-signalsChannel:
if closer, ok := spanWriter.(io.Closer); ok {
Copy link
Contributor

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

Copy link
Member Author

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
Copy link

codecov bot commented Jun 11, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@884c257). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 884c257...e58dec7. Read the comment docs.

@pavolloffay pavolloffay merged commit 10252fe into jaegertracing:master Jun 11, 2018
@ghost ghost removed the review label Jun 11, 2018
mabn pushed a commit to mabn/jaeger that referenced this pull request Jun 13, 2018
* 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)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants