1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-12 02:28:07 +02:00
opentelemetry-go/bridge/opentracing
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
..
internal Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00
migration Fix golint error of package comment form (#1487) 2021-02-04 09:55:44 -08:00
bridge.go Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00
doc.go Fix golint error of package comment form (#1487) 2021-02-04 09:55:44 -08:00
go.mod Release v0.19.0 (#1710) 2021-03-19 08:36:17 -07: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
mix_test.go Make SpanContext Immutable (#1573) 2021-03-09 08:17:29 -08:00
util.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
wrapper.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00