8000 Give reporters a final chance to flush data before stopping · Issue #533 · kamon-io/Kamon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
Give reporters a final chance to flush data before stopping #533
Closed
@ivantopo

Description

@ivantopo

In the particular case of all reporters being shut down because of the JVM exiting we should have a means of reporting whatever data has been accumulated since the last tick before completely stopping the reporters. I think the flow should be:

  1. Kamon.stopAllReporters() is called
  2. Whatever state is available for metrics and span reporters is flushed via reportPeriodSnapshots/reportSpans
  3. The stop hook is called
  4. After completing all the above successfully or a timeout is reached Kamon finishes shutting down the reporters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0