opentelemetry-go/sdk/trace
Tyler Yahn d143b8fbf8
Unify API Span Start/End Options (#1108)
* Unify API Span Start/End Options

Replace both with `SpanOption`. Add a unified `SpanConfig` to match and
a `SpanConfigure` function to parse a `SpanConfig` from `SpanOption`s.

Update all the related options to use new `SpanOption`s.

* No non-zero SpanConfig defaults

The SDK uses an internal clock for the current time that cannot be use
if it does not know the time has not been set.

* Append attributes for WithAttributes

This preserves existing behavior.

* Add unit test for SpanConfigure

* Propagate changes

* Update append option documentation

* Update testing comments

* Move comments on guarantees to appropriate function

* Add documentation for SDK methods

Include SDK implementation specific information in the Tracer Start
method and Span End method.

* Add changes to Changelog

* Apply suggestions from code review

Co-authored-by: ET <evantorrie@users.noreply.github.com>

* Update the SpanKind comment in the  SpanConfig

Try for a less tautological comment.

Co-authored-by: ET <evantorrie@users.noreply.github.com>
2020-09-03 07:34:36 -07:00
..
internal Rename trace.TraceID & trace.TraceIDFromHex 2020-05-03 13:48:38 +08:00
attributesMap.go Unify `api/label` and `api/kv` in new `label` package (#1060) 2020-08-17 20:25:03 -07:00
batch_span_processor.go Fix BatchSpanProcessor.Shutdown to wait until all spans are processed (#766) 2020-06-09 15:20:48 -07:00
batch_span_processor_test.go Fix BatchSpanProcessor.Shutdown to wait until all spans are processed (#766) 2020-06-09 15:20:48 -07:00
benchmark_test.go Unify `api/label` and `api/kv` in new `label` package (#1060) 2020-08-17 20:25:03 -07:00
config.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
doc.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
evictedqueue.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
evictedqueue_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
id_generator.go Rename trace.TraceID & trace.TraceIDFromHex 2020-05-03 13:48:38 +08:00
provider.go Update trace API TracerOption (#1109) 2020-09-02 07:20:52 -07:00
sampling.go Change name of ProbabilitySampler to TraceIdRatioBased (#1115) 2020-09-03 07:28:01 -07:00
sampling_test.go Change name of ProbabilitySampler to TraceIdRatioBased (#1115) 2020-09-03 07:28:01 -07:00
simple_span_processor.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
simple_span_processor_test.go Rename trace.TraceID & trace.TraceIDFromHex 2020-05-03 13:48:38 +08:00
span.go Unify API Span Start/End Options (#1108) 2020-09-03 07:34:36 -07:00
span_processor.go Remove the orphaned RegisterSpanProcessor and UnregisterSpanProcessor #1077 2020-08-22 12:38:13 +02:00
span_processor_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
trace.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
trace_go11.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
trace_nongo11.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
trace_test.go Unify API Span Start/End Options (#1108) 2020-09-03 07:34:36 -07:00
tracer.go Unify API Span Start/End Options (#1108) 2020-09-03 07:34:36 -07:00
util_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00