1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-03 22:52:30 +02:00
opentelemetry-go/sdk/trace
Tyler Yahn c7ae470a16
Refactor SDK span creation and implementation (#2213)
* Refactor startSpanInternal into a tracer method

The span creation and configuration process is split across the tracer
Start method and the startSpanInternal function, each living in
different files. This adds confusion when developing. It requires the
developer to remember certain parts of the configuration happen in one
place or the other.

This unifies the creation and configuration of a new span. It makes this
unification by creating a newSpan method on the tracer. This method will
do all the configuration needed for a new span other than setting the
execution task tracker. This remains a part of the Start method to
preserve any existing timing and tracing the already exists.

* Add a non-recording span to the SDK

* Assign returned context from runtime trace task

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-09-02 17:30:12 -04:00
..
tracetest
attributesmap_test.go
attributesmap.go
batch_span_processor_test.go
batch_span_processor.go
benchmark_test.go
config.go
doc.go
event.go
evictedqueue_test.go
evictedqueue.go
id_generator.go
link.go
provider_test.go
provider.go
sampling_test.go
sampling.go
simple_span_processor_test.go
simple_span_processor.go
snapshot.go
span_exporter.go
span_processor_annotator_example_test.go
span_processor_filter_example_test.go
span_processor_test.go
span_processor.go
span.go Refactor SDK span creation and implementation (#2213) 2021-09-02 17:30:12 -04:00
trace_test.go Refactor SDK span creation and implementation (#2213) 2021-09-02 17:30:12 -04:00
tracer.go Refactor SDK span creation and implementation (#2213) 2021-09-02 17:30:12 -04:00
util_test.go