Class 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
    • Constructor Detail

      • HttpZipkinTracer

        public HttpZipkinTracer()
        Default constructor for the service loader
    • 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 service
        stats - 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 properties
        stats - 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 interface com.twitter.util.Closable
        Overrides:
        close in class ZipkinTracer