1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-05 22:54:18 +02:00
opentelemetry-go/exporters/otlp
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
..
internal Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
otlpgrpc Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
otlphttp Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07: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 Change NewSplitDriver paramater and initialization (#1798) 2021-04-23 14:51:55 -04:00
go.mod Implement retry policy for the OTLP/gRPC exporter (#1832) 2021-04-29 11:07:21 -07:00
go.sum Implement retry policy for the OTLP/gRPC exporter (#1832) 2021-04-29 11:07:21 -07:00
options.go Change NewSplitDriver paramater and initialization (#1798) 2021-04-23 14:51:55 -04:00
optiontypes.go add support for env var configuration to otlp/gRPC (#1811) 2021-04-16 14:52:24 -07:00
otlp_metric_test.go Migrate to using go.opentelemetry.io/proto/otlp (#1713) 2021-03-20 09:25:07 -07:00
otlp_span_test.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
otlp_test.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
otlp.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
protocoldriver.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
README.md Implement retry policy for the OTLP/gRPC exporter (#1832) 2021-04-29 11:07:21 -07:00
retry.go Implement retry policy for the OTLP/gRPC exporter (#1832) 2021-04-29 11:07:21 -07:00

OpenTelemetry Collector Go Exporter

PkgGoDev

This exporter exports OpenTelemetry spans and metrics to the OpenTelemetry Collector.

Installation and Setup

The exporter can be installed using standard go functionality.

go get -u go.opentelemetry.io/otel/exporters/otlp

A new exporter can be created using the NewExporter function.