1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/exporters
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
..
metric prometheus: check return value from CheckpointSet.ForEach (#622) 2020-04-07 10:58:49 -07:00
otlp Update OTLP SpanData transform (#614) 2020-04-07 15:14:23 -07:00
trace Prepare for releasing v0.4.2 (#608) 2020-03-31 12:57:37 -07:00