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
Tyler Yahn 856aad92ef
Update OTLP SpanData transform (#614)
* Update OTLP SpanData transform

The ParentSpanId needs to be empty for root spans according to the OTLP
[docs](6c2a86ed2f/gen/go/trace/v1/trace.pb.go (L284-L286)).
This updates the SpanData transform function to not add the ParentSpanID
if it is not a valid span ID (which includes if it is the nil span ID
used for an unset ID).

Additionally, this adds a test to prevent regression.

* Simplify test to just check parent span ID transform

Co-authored-by: Rahul Patel <rahulpa@google.com>
2020-04-07 15:14:23 -07:00
..
internal/transform Update OTLP SpanData transform (#614) 2020-04-07 15:14:23 -07:00
alignment_test.go Update project License headers and checking (#596) 2020-03-25 14:47:17 -07:00
connection.go Update project License headers and checking (#596) 2020-03-25 14:47:17 -07:00
doc.go Update project License headers and checking (#596) 2020-03-25 14:47:17 -07:00
example_test.go update godoc.org links to pkg.go.dev (#602) 2020-03-30 15:40:38 -04:00
go.mod Prepare for releasing v0.4.2 (#608) 2020-03-31 12:57:37 -07:00
go.sum Move span transforms of the OTLP exporter to internal (#593) 2020-03-25 09:04:31 -07:00
mock_collector_test.go Update project License headers and checking (#596) 2020-03-25 14:47:17 -07:00
options.go Updated default port for OTLP exporter (#611) 2020-04-02 10:04:57 -07:00
otlp_test.go Remove Labelset (#595) 2020-03-27 14:06:48 -07:00
otlp.go Update project License headers and checking (#596) 2020-03-25 14:47:17 -07:00
README.md update godoc.org links to pkg.go.dev (#602) 2020-03-30 15:40:38 -04:00

OpenTelemetry Collector Go Exporter

GoDoc

This exporter converts OpenTelemetry SpanData to OpenTelemetry Protocol Span and exports them to OpenTelemetry Collector.

Installation

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