mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-11-30 08:46:54 +02:00
942713a02d
This PR removes the non-compliant ChildOf and FollowsFrom interfaces and the Relation type, which were inherited from OpenTracing via the initial prototype. Instead allow adding a span context to the go context as a remote span context and use a simple algorithm for figuring out an actual parent of the new span, which was proposed for the OpenTelemetry specification. Also add a way to ignore current span and remote span context in go context, so we can force the tracer to create a new root span - a span with a new trace ID. That required some moderate changes in the opentracing bridge - first reference with ChildOfRef reference type becomes a local parent, the rest become links. This also fixes links handling in the meantime. The downside of the approach proposed here is that we can only set the remote parent when creating a span through the opentracing API. Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com> |
||
---|---|---|
.. | ||
testtrace | ||
always_sampler_test.go | ||
always_sampler.go | ||
api.go | ||
b3_propagator.go | ||
context_test.go | ||
context.go | ||
doc.go | ||
never_sampler_test.go | ||
never_sampler.go | ||
noop_span.go | ||
noop_trace_provider.go | ||
noop_trace.go | ||
sampler.go | ||
trace_context_propagator.go |