Sampler instead.@Deprecated public class FixedSampleRateTraceFilter extends Object implements TraceFilter
TraceFilter that is initialized with a fixed sample rate.| Constructor and Description |
|---|
FixedSampleRateTraceFilter(int sampleRate)
Deprecated.
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
Should be called when TraceFilter will not be used anymore.
|
boolean |
trace(long spanId,
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,
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 © 2016. All rights reserved.