This PR lays the foundation for sampling. It adds a Sampler protocol with the simplest of conformances, the ConstantSampler. Other than that, it's now JaegerTracers responsibility to update the TraceContext of a span it's starting. Therefore, the JaegerSpan initializer becomes simpler and assigns arguments to stored properties.
This PR lays the foundation for sampling. It adds a
Sampler
protocol with the simplest of conformances, theConstantSampler
. Other than that, it's nowJaegerTracer
s responsibility to update theTraceContext
of a span it's starting. Therefore, theJaegerSpan
initializer becomes simpler and assigns arguments to stored properties.Closes #2