opentelemetry-go/api/trace
Anthony Mirabella 7a1cbbc191
Update Samplers to conform to Spec (#531)
* Refactor SDK Sampler API to conform to Spec

* Sampler is now an interface rather than a function type
* SamplingParameters include the span Kind, Attributes, and Links
* SamplingResult includes a SamplingDecision with three possible values, as well as Attributes

* Add attributes retruned from a Sampler to the span

* Add SpanKind, Attributes, and Links to API Sampler.ShouldSample() parameters

* Drop "Get" from sdk Sampler.GetDescription to match api Sampler

* Make spanID parameter in API Sampler interface a core.SpanID

* Fix types and printf format per PR feedback from krnowak

* Ensure unit test error messages reflect new reality

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-03-10 08:25:11 -07:00
..
testtrace Add status message parameter (#524) 2020-03-07 10:38:59 -08:00
always_sampler.go Update Samplers to conform to Spec (#531) 2020-03-10 08:25:11 -07:00
always_sampler_test.go Update Samplers to conform to Spec (#531) 2020-03-10 08:25:11 -07:00
api.go Add status message parameter (#524) 2020-03-07 10:38:59 -08:00
b3_propagator.go Add global propagators (#494) 2020-03-05 10:12:10 -08:00
context.go Replace span relationship with a potentially remote parent context (#451) 2020-02-04 08:55:03 -08:00
context_test.go Add status message parameter (#524) 2020-03-07 10:38:59 -08:00
doc.go Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00
never_sampler.go Update Samplers to conform to Spec (#531) 2020-03-10 08:25:11 -07:00
never_sampler_test.go Update Samplers to conform to Spec (#531) 2020-03-10 08:25:11 -07:00
noop_span.go Add status message parameter (#524) 2020-03-07 10:38:59 -08:00
noop_trace.go Add StartOptions to Tracer.WithSpan() (#472) 2020-02-10 21:07:32 -05:00
noop_trace_provider.go Rename GetTracer to Tracer (#347) 2019-11-25 09:46:07 -08:00
sampler.go Update Samplers to conform to Spec (#531) 2020-03-10 08:25:11 -07:00
trace_context_propagator.go Add global propagators (#494) 2020-03-05 10:12:10 -08:00