Skip to content

Commit

Permalink
use AddSpanLinks method in StartSpan
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Jan 27, 2025
1 parent 97d8310 commit 65f83d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/tracer/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 65f83d0

Please sign in to comment.