1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/propagation
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
..
baggage_test.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
baggage.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
doc.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
propagation_test.go Add Keys() method to propagation.TextMapCarrier (#1544) 2021-02-17 08:04:49 -08:00
propagation.go Add Keys() method to propagation.TextMapCarrier (#1544) 2021-02-17 08:04:49 -08:00
propagators_test.go Make SpanContext Immutable (#1573) 2021-03-09 08:17:29 -08:00
trace_context_benchmark_test.go Make SpanContext Immutable (#1573) 2021-03-09 08:17:29 -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 Make SpanContext Immutable (#1573) 2021-03-09 08:17:29 -08:00
trace_context.go Make SpanContext Immutable (#1573) 2021-03-09 08:17:29 -08:00