1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +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 Make the tracetest.SpanRecorder concurrent safe (#2178) 2021-08-12 09:12:31 -07:00
attributesmap_test.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
attributesmap.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
batch_span_processor_test.go Test BatchSpanProcessor export timeout directly (#1982) 2021-06-09 14:05:10 -07:00
batch_span_processor.go Replaces golint by revive and fix newly reported linter issues (#1946) 2021-06-08 10:10:01 -07:00
benchmark_test.go Rename WithDefaultSampler TracerProvider option to WithSampler and update docs (#1702) 2021-03-18 09:34:47 -07:00
config.go sdk/trace: removing ApplyConfig and Config (#1693) 2021-03-18 10:48:13 -07:00
doc.go Pre-release 1.0.0-RC1 (#2013) 2021-06-18 11:22:16 -04:00
event.go Move the Event type from the API to the SDK (#1846) 2021-04-29 10:29:48 -07:00
evictedqueue_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
evictedqueue.go chore: adds vanity import for files that don't have it. (#1297) 2020-11-04 09:10:58 -08:00
id_generator.go Interface stability documentation (#2012) 2021-06-18 07:56:11 -07:00
link.go Removed dropped link's attributes field from API package (#2118) 2021-07-26 11:06:41 -04:00
provider_test.go Add schema URL support to Tracer (#1889) 2021-05-27 15:22:38 -04:00
provider.go Add Schema URL support to Resource (#1938) 2021-06-08 09:46:42 -07:00
sampling_test.go Deprecated the oteltest.TraceStateFromKeyValues function (#2122) 2021-07-26 11:12:53 -04:00
sampling.go Interface stability documentation (#2012) 2021-06-18 07:56:11 -07:00
simple_span_processor_test.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
simple_span_processor.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
snapshot.go Removed dropped link's attributes field from API package (#2118) 2021-07-26 11:06:41 -04:00
span_exporter.go Interface stability documentation (#2012) 2021-06-18 07:56:11 -07:00
span_processor_annotator_example_test.go Add SpanProcessor example for Span annotation on start (#1733) 2021-04-21 14:40:52 -04:00
span_processor_filter_example_test.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
span_processor_test.go Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00
span_processor.go Interface stability documentation (#2012) 2021-06-18 07:56:11 -07:00
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 Rename WithDefaultSampler TracerProvider option to WithSampler and update docs (#1702) 2021-03-18 09:34:47 -07:00