1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/exporters/stdout
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.go chore: adds vanity import for files that don't have it. (#1297) 2020-11-04 09:10:58 -08:00
doc.go Update README and documentation to better communicate pre-GA state (#1281) 2020-10-29 09:23:13 -07:00
example_test.go Move Version function and code from global to toplevel (#1330) 2020-11-16 09:30:54 -08:00
exporter.go Move Version function and code from global to toplevel (#1330) 2020-11-16 09:30:54 -08:00
go.mod Release v0.15.0 (#1392) 2020-12-10 21:00:59 -08:00
go.sum Bump github.com/google/go-cmp from 0.5.3 to 0.5.4 (#1374) 2020-11-30 10:31:41 -08:00
metric_test.go Move metric code to a separate package (#1321) 2020-11-12 07:28:32 -08:00
metric.go Move metric code to a separate package (#1321) 2020-11-12 07:28:32 -08:00
trace_test.go Add TraceState to SpanContext in API (#1340) 2020-12-21 13:11:48 -08:00
trace.go Add RO/RW span interfaces (#1360) 2020-12-10 21:15:44 -08:00