diff --git a/ddtrace/tracer/tracer.go b/ddtrace/tracer/tracer.go index ce1f5b0f23..90f11bee41 100644 --- a/ddtrace/tracer/tracer.go +++ b/ddtrace/tracer/tracer.go @@ -573,7 +573,7 @@ func (t *tracer) StartSpan(operationName string, options ...ddtrace.StartSpanOpt noDebugStack: t.config.noDebugStack, } - span.SpanLinks = append(span.SpanLinks, opts.SpanLinks...) + span.AddSpanLinks(opts.SpanLinks...) if t.config.hostname != "" { span.setMeta(keyHostname, t.config.hostname)