Is this tracer actively tracing this traceId?
Is this tracer actively tracing this traceId?
Return: If TraceId.sampled == None sampleTrace() has not been called yet or the tracer still wants to receive traces but not make the decision for child services. In either case return true so that this tracer is still considered active for this traceId.
If TraceId.sampled == Some(decision) sampleTrace() has already been called, or a previous service has already made a decision whether to sample this trace or not. So respect that decision and return it.
Indicates whether or not this tracer instance is NullTracer.
Indicates whether or not this tracer instance is NullTracer.
Should we sample this trace or not? Could be decided that a percentage of all traces will be let through for example.
Should we sample this trace or not? Could be decided that a percentage of all traces will be let through for example. True: keep it False: false throw the data away None: i'm going to defer making a decision on this to the child service
Tracer.SomeTrue and Tracer.SomeFalse as constant return values.
A no-op Tracer.
supplying this tracer to a finagle client or server will not prevent trace information from being propagated to the next peer, but it will ensure that the client or server does not log any trace information about this host. If traces are being aggregated across your fleet, it will orphan subsequent spans.