Skip to content

Commit

Permalink
Remove confusing SamplingTracer from finagle-zipkin
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinnfannar committed Jun 2, 2016
1 parent c863d70 commit 262614b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
7 changes: 5 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Deprecations
* finagle-http: Deprecate channelBufferUsageTracker in favor of maxRequestSize.
``RB_ID=831233``

* finagle-zipkin: Deprecate `ZipkinTracer` in favor of `ScribeZipkinTracer`.
``RB_ID=??``

Breaking API Changes
~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -54,8 +57,8 @@ Breaking API Changes
* finagle-memcached: `c.t.f.memcached.Client` now uses `c.t.bijection.Bijection`
instead of `c.t.u.Bijection`. ``RB_ID=834383``

* finagle-zipkin: Moved case classes `Span`, `ZipkinAnnotation`,
`BinaryAnnotation`, `Endpoint` and `Sampler` to finagle-zipkin-core.
* finagle-zipkin: Moved case classes and companion objects `Span`, `ZipkinAnnotation`,
`BinaryAnnotation`, `Endpoint`, `Sampler` and `SamplingTracer` to finagle-zipkin-core.
``RB_ID=??``

* Builds are now only for Java 8 and Scala 2.11. See the
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
com.twitter.finagle.zipkin.thrift.SamplingTracer
com.twitter.finagle.zipkin.thrift.ScribeZipkinTracer
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,22 @@ object ZipkinTracer {
}

/**
* SamplingTracer with a default constructor for the service loader to create a Scribe backed tracer
* Receives the Finagle generated traces and sends a sample of them off to Zipkin via Scribe
*/
class SamplingTracer extends core.SamplingTracer(
ScribeRawZipkinTracer(Host().getHostName, Host().getPort,
class ScribeZipkinTracer(tracer: ScribeRawZipkinTracer, sampleRate: Float)
extends core.SamplingTracer(tracer, sampleRate) {
/**
* Default constructor for the service loader
*/
def this() = this(ScribeRawZipkinTracer(Host().getHostName, Host().getPort,
DefaultStatsReceiver.scope("zipkin")), sampleRateFlag())
}

/**
* Receives the Finagle generated traces and sends them off to Zipkin via Scribe
* Receives the Finagle generated traces and sends a sample of them off to Zipkin via Scribe
* @param tracer underlying tracer
* @param sampleRate ratio of requests to trace
*/
@deprecated("Use ScribeZipkinTracer instead", "6.36.0")
class ZipkinTracer(tracer: ScribeRawZipkinTracer, sampleRate: Float)
extends core.SamplingTracer(tracer, sampleRate)

0 comments on commit 262614b

Please sign in to comment.