1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-10 09:50:58 +02:00
opentelemetry-go/propagation
Tyler Yahn 604b05cbcf
Store current Span instead of local and remote SpanContext in context.Context (#1731)
* Store Span instead of local/remote SpanContext in Context

Now that the SpanContext has a remote identifier, storing a Span's
SpanContext two separate ways in a Context (one for local another for
remote) is unnecessary and adds complication throughout the project when
determining heredity of a Span. This moves to storing the Span directly
in the Context uniformly (for both local and remote) as current Span. In
the process, it updates the getter/setter functionality the `trace`
package provides and replaces the distributed heredity logic throughout
the project with just using the current Span as the parent if it exists.

* Update trace/context.go

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>

* Assert propagators context remote state

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-03-29 08:55:44 -07: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 Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07: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 Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00
trace_context.go Update the TraceContext.Extract docs (#1720) 2021-03-20 09:12:34 -07:00