Class StackdriverReporter

  • All Implemented Interfaces:
    java.io.Flushable, java.lang.AutoCloseable, zipkin2.reporter.Reporter<zipkin2.Span>

    @Singleton
    public class StackdriverReporter
    extends java.lang.Object
    implements zipkin2.reporter.Reporter<zipkin2.Span>, java.io.Flushable, java.lang.AutoCloseable
    • Field Summary

      • Fields inherited from interface zipkin2.reporter.Reporter

        CONSOLE, NOOP
    • Constructor Summary

      Constructors 
      Constructor Description
      StackdriverReporter​(dagger.Lazy<com.google.devtools.cloudtrace.v2.TraceServiceGrpc.TraceServiceFutureStub> traceServiceClient, MonitoringConfig config)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void report​(zipkin2.Span span)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StackdriverReporter

        @Inject
        public StackdriverReporter​(dagger.Lazy<com.google.devtools.cloudtrace.v2.TraceServiceGrpc.TraceServiceFutureStub> traceServiceClient,
                                   MonitoringConfig config)
    • Method Detail

      • report

        public void report​(zipkin2.Span span)
        Specified by:
        report in interface zipkin2.reporter.Reporter<zipkin2.Span>
      • flush

        public void flush()
        Specified by:
        flush in interface java.io.Flushable
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception