Interface TraceExporter

All Known Implementing Classes:
InMemoryTraceExporter

public interface TraceExporter
Interface for exporting spans to tracing backends.

Implementation notes

- Implementations should handle null or empty span lists gracefully - Implementations should be thread-safe - Implementations should not block indefinitely
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Export a batch of spans.
    void
    Shutdown the exporter and release any resources.
  • Method Details

    • export

      void export(List<SpanManager.Span> spans)
      Export a batch of spans.
      Parameters:
      spans - the spans to export (may be empty)
    • shutdown

      void shutdown()
      Shutdown the exporter and release any resources.