1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/trace
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
..
config_test.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
config.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
doc.go Update the package docs for the new API layout (#1346) 2020-11-17 10:30:22 -05:00
trace_noop_test.go Add TraceState to SpanContext in API (#1340) 2020-12-21 13:11:48 -08:00
trace_noop.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
trace_test.go Add TraceState to SpanContext in API (#1340) 2020-12-21 13:11:48 -08:00
trace.go Add TraceState to SpanContext in API (#1340) 2020-12-21 13:11:48 -08:00