Interface LogExporter

All Known Implementing Classes:
InMemoryLogExporter

public interface LogExporter
An exporter is responsible for taking a collection of LogDatas and transmitting them to their ultimate destination.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.sdk.common.CompletableResultCode
    Exports the collections of given LogData.
    io.opentelemetry.sdk.common.CompletableResultCode
    Exports the collection of LogData that have not yet been exported.
  • Method Details

    • export

      io.opentelemetry.sdk.common.CompletableResultCode export(Collection<LogData> logs)
      Exports the collections of given LogData.
      Parameters:
      logs - the collection of LogData to be exported
      Returns:
      the result of the export, which is often an asynchronous operation
    • shutdown

      io.opentelemetry.sdk.common.CompletableResultCode shutdown()
      Exports the collection of LogData that have not yet been exported.
      Returns:
      the result of the flush, which is often an asynchronous operation