Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

stats/view: implement Flush #922

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 21, 2018

  1. stats/view: implement Flush

    Flush is a global function that immediately reports
    all collected data by the worker, regardless of the
    reporting duration or buffering.
    
    Added tests but also ensured that calling (*worker).stop()
    then Flush doesn't block and returns ASAP if the state
    is "quit". The required protected w.quit from double close
    but also using a select to detect cases of forever waiting
    channel `w.quit` which was closed.
    
    Fixes census-instrumentation#862
    odeke-em committed Sep 21, 2018
    Configuration menu
    Copy the full SHA
    1091c3f View commit details
    Browse the repository at this point in the history