Class ApmServerReporter

  • All Implemented Interfaces:
    Reporter, java.io.Closeable, java.lang.AutoCloseable

    public class ApmServerReporter
    extends java.lang.Object
    implements Reporter
    This reporter asynchronously reports Transactions to the APM server

    It uses a Disruptor/ring buffer to decouple the Transaction producing threads from the thread that actually sends the payload

    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface Reporter
      • flush

        public java.util.concurrent.Future<java.lang.Void> flush()
        Flushes pending ErrorCaptures and Transactions to the APM server.

        This method may block for a while until a slot in the ring buffer becomes available.

        Specified by:
        flush in interface Reporter
        Returns:
        A Future which resolves when the flush has been executed.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Reporter
      • report

        public void report​(com.dslplatform.json.JsonWriter jsonWriter)
        Specified by:
        report in interface Reporter