Class BraveTracingCleanup

java.lang.Object
com.netflix.genie.common.internal.tracing.brave.BraveTracingCleanup

public class BraveTracingCleanup extends Object
Any cleanup needed at program shutdown for Brave instrumentation.
Since:
4.0.0
  • Constructor Details

    • BraveTracingCleanup

      public BraveTracingCleanup(Set<zipkin2.reporter.AsyncReporter<?>> reporters)
      Constructor.
      Parameters:
      reporters - Any AsyncReporter instance configured for the system
  • Method Details

    • cleanup

      public void cleanup()
      Should be called at the end of the program to perform any necessary cleanup that native Brave components don't already do. Example: flushing asynchronous reporters so that spans are more guaranteed to be reported than if this wasn't explicitly called and a timeout happened.