Class TimeLimitedHandler

java.lang.Object
io.opencensus.trace.export.SpanExporter.Handler
io.opencensus.exporter.trace.util.TimeLimitedHandler

public abstract class TimeLimitedHandler extends SpanExporter.Handler
An abstract class that allows different tracing services to export recorded data for sampled spans in their own format within a given time frame. If export does not complete within the time frame, spans will be dropped and no retries will be performed.

Only extend this class if the client APIs don't support timeout natively. If there is a timeout option in the client APIs (for example Stackdriver Trace V2 API allows you to set timeout), use that instead.

To export data this MUST be register to to the ExportComponent using SpanExporter.registerHandler(String, Handler).

Since:
0.22
  • Constructor Details

    • TimeLimitedHandler

      protected TimeLimitedHandler(Duration deadline, String exportSpanName)
  • Method Details