1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-14 10:13:10 +02:00
opentelemetry-go/internal
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 Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
global Fix issue #1490, apply same logic as in the SDK (#1687) 2021-03-10 11:04:05 -08:00
internaltest Rename internal/testing to internal/internaltest (#1449) 2021-01-12 08:56:16 -08:00
matchers Add a test to prove the Tracer is safe for concurrent calls (#1665) 2021-03-16 11:55:14 -04:00
metric Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
tools Bump github.com/golangci/golangci-lint in /internal/tools (#1743) 2021-03-28 09:42:38 -07:00
trace/noop Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00
rawhelpers.go Remove extra labels types (#1314) 2021-02-16 16:23:58 -08:00