1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-05 22:54:18 +02:00
opentelemetry-go/sdk/trace
Tyler Yahn cbcd4b1a3d
Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873)
* Remove TODO from ReadOnlySpan interface

* Remove the Tracer method from the ReadOnlySpan

This is not required by the specification nor the use of this interface.

* Remove IsRecording from the ReadOnlySpan interface

A read-only span value does not need to know if updates to it will be
recorded. It by definition cannot be updated so no point in
communicating if an update would be recorded.

* Document the ReadOnlySpan interface

* Rename messageEvent* to just event*

* Move the SpanSnapshot into its own file

* Update ReadOnlySpan interface with meta info methods

Add the DroppedAttributes, DroppedLinks, DroppedEvents, and
ChildSpanCount methods to the interface to return additional information
about the span not specified by the specification, but that we are
already providing.

* Add SpanStub to the sdk/trace/tracetest pkg

* Redefine ExportSpans of SpanExporter with ReadOnlySpan

* Rename SpanSnapshot to snapshot and purge docs

* Remove Snapshot method from snapshot type

This method is a hold-over from previous version of the ReadOnlySpan
interface is not needed.

* Update CHANGELOG with changes
2021-05-04 16:45:13 -07:00
..
tracetest Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -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 Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
batch_span_processor.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -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 Update README and documentation to better communicate pre-GA state (#1281) 2020-10-29 09:23:13 -07: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 Enable support for externally-defined ID generators (#1363) 2020-12-09 20:30:32 -05:00
provider_test.go Add ForceFlush method to TracerProvider (#1608) 2021-03-08 11:12:13 -08:00
provider.go Document the SSP is not for production use (#1844) 2021-04-27 09:23:09 -07:00
sampling_test.go Update SamplingParameters (#1749) 2021-03-30 10:34:40 -07:00
sampling.go Update SamplingParameters (#1749) 2021-03-30 10:34:40 -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 Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
span_exporter.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -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 Add ForceFlush method to TracerProvider (#1608) 2021-03-08 11:12:13 -08:00
span.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
trace_test.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
tracer.go Remove links on NewRoot spans (#1726) 2021-03-25 10:36:39 -04:00
util_test.go Rename WithDefaultSampler TracerProvider option to WithSampler and update docs (#1702) 2021-03-18 09:34:47 -07:00