1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/oteltest
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
..
alignment_test.go Remove MockSpan and MockTracer (#1306) 2020-11-05 08:13:19 -08:00
config.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
doc.go Update README and documentation to better communicate pre-GA state (#1281) 2020-10-29 09:23:13 -07:00
event.go chore: adds vanity import for files that don't have it. (#1297) 2020-11-04 09:10:58 -08:00
harness.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
meter.go Move metric code to a separate package (#1321) 2020-11-12 07:28:32 -08:00
provider.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
span_test.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
span.go Add TraceState to SpanContext in API (#1340) 2020-12-21 13:11:48 -08:00
text_map_propagator_test.go Add oteltest TextMap propagator and carrier (#1259) 2020-10-15 09:15:52 -07:00
text_map_propagator.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
tracer_test.go Add TraceState to SpanContext in API (#1340) 2020-12-21 13:11:48 -08:00
tracer.go Add TraceState to SpanContext in API (#1340) 2020-12-21 13:11:48 -08:00