Class StackdriverReporter
- java.lang.Object
-
- org.curioswitch.common.server.framework.monitoring.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
-
-
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)
-
-
-
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 interfacezipkin2.reporter.Reporter<zipkin2.Span>
-
flush
public void flush()
- Specified by:
flush
in interfacejava.io.Flushable
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
-