1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/sdk
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
..
export/metric Release v0.20.0 (#1837) 2021-04-23 11:19:07 -07:00
instrumentation Update default branch name (#1505) 2021-02-04 11:13:25 -08:00
internal Move Version function and code from global to toplevel (#1330) 2020-11-16 09:30:54 -08:00
metric Release v0.20.0 (#1837) 2021-04-23 11:19:07 -07:00
resource Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00
trace Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
go.mod Release v0.20.0 (#1837) 2021-04-23 11:19:07 -07:00
go.sum Bump github.com/google/go-cmp from 0.5.4 to 0.5.5 (#1667) 2021-03-08 12:15:49 -08:00