1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/exporters/otlp/otlpgrpc
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
..
alignment_test.go Rename internal/testing to internal/internaltest (#1449) 2021-01-12 08:56:16 -08:00
connection_test.go Implement retry policy for the OTLP/gRPC exporter (#1832) 2021-04-29 11:07:21 -07:00
connection.go Implement retry policy for the OTLP/gRPC exporter (#1832) 2021-04-29 11:07:21 -07:00
doc.go Move gRPC driver to a subpackage and add an HTTP driver (#1420) 2021-01-11 22:55:24 -05:00
driver.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
example_test.go Change NewSplitDriver paramater and initialization (#1798) 2021-04-23 14:51:55 -04:00
mock_collector_test.go Implement retry policy for the OTLP/gRPC exporter (#1832) 2021-04-29 11:07:21 -07:00
options.go Implement retry policy for the OTLP/gRPC exporter (#1832) 2021-04-29 11:07:21 -07:00
otlp_integration_test.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00