TraceFilterSampler instead.@Deprecated public class FixedSampleRateTraceFilter extends java.lang.Object implements TraceFilter
TraceFilter that is initialized with a fixed sample rate.| Constructor | Description |
|---|---|
FixedSampleRateTraceFilter(int sampleRate) |
Deprecated.
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Deprecated.
Should be called when TraceFilter will not be used anymore.
|
boolean |
trace(long spanId,
java.lang.String spanName) |
Deprecated.
Indicates if we should trace request with given name.
|
public FixedSampleRateTraceFilter(int sampleRate)
sampleRate - Sample rate <= 0 means there will not be any tracing. Sample rate = 1 means every request will be
traced. Sample rate > 1, for example 3 means 1 out of 3 requests will be traced.public boolean trace(long spanId,
java.lang.String spanName)
trace in interface TraceFilterspanName - Span name.true in case we should trace this request, false in case we should not trace this
request.public void close()
close in interface TraceFilterCopyright © 2018 OpenZipkin. All rights reserved.