1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/exporters/stdout
Anthony Mirabella e88a091a72
Make SpanContext Immutable (#1573)
* Make SpanContext Immutable

* Adds NewSpanContext() constructor and SpanContextConfig{} struct for
constructing a new SpanContext when all fields are known
* Adds With<field>() methods to SpanContext for deriving a SpanContext
with a single field changed.
* Updates all uses of SpanContext to use the new API

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Update CHANGELOG.md

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Add tests for new SpanContext constructor and derivation

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Address PR feedback

* Fix new uses of SpanContext from main
2021-03-09 08:17:29 -08:00
..
config.go revent end-users from implementing some interfaces (#1575) 2021-02-24 10:03:35 -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 Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
exporter.go exporter: swap pusher for exporter (#1656) 2021-03-08 10:00:56 -08:00
go.mod Pre release v0.18.0 (#1635) 2021-03-03 14:40:00 -05:00
go.sum Bump github.com/google/go-cmp from 0.5.4 to 0.5.5 (#1667) 2021-03-08 12:15:49 -08:00
metric_test.go Fix stdout TestStdoutTimestamp failure with sleep (#1572) 2021-02-23 14:38:23 -05:00
metric.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
trace_test.go Make SpanContext Immutable (#1573) 2021-03-09 08:17:29 -08:00
trace.go Add RO/RW span interfaces (#1360) 2020-12-10 21:15:44 -08:00