All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.opentracing.reporting.Reporter Maven / Gradle / Ivy

package com.wavefront.opentracing.reporting;

import com.wavefront.opentracing.WavefrontSpan;

import java.io.IOException;

/**
 * Interface for reporting finished spans.
 *
 * @author Vikram Raman ([email protected])
 */
public interface Reporter {

  /**
   * Report opentracing span to Wavefront
   *
   * @param span OpenTracing span
   * @throws IOException
   */
  void report(WavefrontSpan span) throws IOException;

  /**
   * Get total failure count reported by this reporter
   *
   * @return total failure count
   */
  int getFailureCount();

  /**
   * Close the reporter. WIll flush in-flight buffer before closing.
   *
   * @throws IOException
   */
  void close() throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy