Package zipkin2.finagle.http
Class HttpZipkinTracer
- java.lang.Object
-
- com.twitter.finagle.zipkin.core.SamplingTracer
-
- zipkin2.finagle.ZipkinTracer
-
- zipkin2.finagle.http.HttpZipkinTracer
-
- All Implemented Interfaces:
com.twitter.finagle.tracing.Tracer
,com.twitter.util.Closable
@AutoService(com.twitter.finagle.tracing.Tracer.class) public final class HttpZipkinTracer extends ZipkinTracer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpZipkinTracer.Config
-
Nested classes/interfaces inherited from class zipkin2.finagle.ZipkinTracer
ZipkinTracer.Builder
-
-
Constructor Summary
Constructors Constructor Description HttpZipkinTracer()
Default constructor for the service loader
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.twitter.util.Future<scala.runtime.BoxedUnit>
close(com.twitter.util.Time deadline)
static HttpZipkinTracer
create(String host, com.twitter.finagle.stats.StatsReceiver stats)
Create a new instance with default configuration.static HttpZipkinTracer
create(HttpZipkinTracer.Config config, com.twitter.finagle.stats.StatsReceiver stats)
-
Methods inherited from class zipkin2.finagle.ZipkinTracer
close, close, newBuilder
-
-
-
-
Method Detail
-
create
public static HttpZipkinTracer create(String host, com.twitter.finagle.stats.StatsReceiver stats)
Create a new instance with default configuration.- Parameters:
host
- The network location of the Zipkin http servicestats
- Gets notified when spans are accepted or dropped. If you are not interested in these events you can use NullStatsReceiver
-
create
public static HttpZipkinTracer create(HttpZipkinTracer.Config config, com.twitter.finagle.stats.StatsReceiver stats)
- Parameters:
config
- includes flush interval and http propertiesstats
- Gets notified when spans are accepted or dropped. If you are not interested in these events you can use NullStatsReceiver
-
close
public com.twitter.util.Future<scala.runtime.BoxedUnit> close(com.twitter.util.Time deadline)
- Specified by:
close
in interfacecom.twitter.util.Closable
- Overrides:
close
in classZipkinTracer
-
-