1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/sdk
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
..
export Add status message parameter (#524) 2020-03-07 10:38:59 -08:00
internal Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00
metric Add observer metric (#474) 2020-03-05 12:15:30 -08:00
resource add resource type. (#528) 2020-03-09 09:30:42 -07:00
trace Update Samplers to conform to Spec (#531) 2020-03-10 08:25:11 -07:00
opentelemetry.go update to v0.2.3 (#512) 2020-03-04 16:12:25 -05:00
README.md Trace sdk (#65) 2019-08-02 13:52:55 -07:00