You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-29 23:07:45 +02:00
use LinkedTo rather than ChildOf for PublicEndpoint (#272)
This causes us to no longer emit missing root spans if we do not have the trace associated with the tracing headers we receive on public endpoints.
This commit is contained in:
@@ -60,6 +60,10 @@ func (tr *tracer) Start(ctx context.Context, name string, o ...apitrace.SpanOpti
|
||||
|
||||
spanName := tr.spanNameWithPrefix(name)
|
||||
span := startSpanInternal(tr, spanName, parent, remoteParent, opts)
|
||||
for _, l := range opts.Links {
|
||||
span.AddLink(l)
|
||||
}
|
||||
|
||||
span.tracer = tr
|
||||
|
||||
if span.IsRecording() {
|
||||
|
||||
Reference in New Issue
Block a user