1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/propagation
Matej Gera 439cd31389
Add TraceState to SpanContext in API (#1340)
* Add TraceState to API

* Add tests for TraceState

* Update related tests

- stdout exporter test
- SDK test

* Update OTLP span transform

* Update CHANGELOG

* Change TraceState to struct instead of pointer

- Adjust tests for trace API
- Adjust adjacent parts of codebase (test utils, SDK etc.)

* Add methods to assert equality

- for type SpanContext, if SpanID, TraceID, TraceFlag and TraceState are
equal
- for type TraceState, if entries of both respective trace states are
equal

Signed-off-by: Matej Gera <matejgera@gmail.com>

* Copy values for new TraceState, adjust tests

* Use IsEqualWith in remaining tests instead of assertion func

* Further feedback, minor improvements

- Move IsEqualWith method to be only in test package
- Minor improvements, typos etc.

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-12-21 13:11:48 -08:00
..
baggage_test.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
baggage.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
doc.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
propagation_test.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
propagation.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
propagators_test.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
trace_context_benchmark_test.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
trace_context_example_test.go Move Version function and code from global to toplevel (#1330) 2020-11-16 09:30:54 -08:00
trace_context_test.go Add TraceState to SpanContext in API (#1340) 2020-12-21 13:11:48 -08:00
trace_context.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00