Skip to content

Close span writer in standalone#863

Merged
pavolloffay merged 2 commits intojaegertracing:masterfrom
pavolloffay:close-span-writer-in-standalone
Jun 11, 2018
Merged

Close span writer in standalone#863
pavolloffay merged 2 commits intojaegertracing:masterfrom
pavolloffay:close-span-writer-in-standalone

Conversation

@pavolloffay
Copy link
Copy Markdown
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>

select {
case <-signalsChannel:
if closer, ok := spanWriter.(io.Closer); ok {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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)
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