1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-12 02:28:07 +02:00
opentelemetry-go/exporters/stdout
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
..
config.go revent end-users from implementing some interfaces (#1575) 2021-02-24 10:03:35 -08:00
doc.go Update README and documentation to better communicate pre-GA state (#1281) 2020-10-29 09:23:13 -07:00
example_test.go Changes stdout to expose the *sdktrace.TracerProvider (#1800) 2021-04-14 08:51:41 -07:00
exporter.go Changes stdout to expose the *sdktrace.TracerProvider (#1800) 2021-04-14 08:51:41 -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
metric_test.go Fix stdout TestStdoutTimestamp failure with sleep (#1572) 2021-02-23 14:38:23 -05:00
metric.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
trace_test.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
trace.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00