Skip to content

Commit

Permalink
log marshal error
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Jan 28, 2025
1 parent 66d3a67 commit 10d5ddb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ddtrace/tracer/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ func (s *span) serializeSpanLinksInMeta() {
}
spanLinkBytes, err := json.Marshal(s.SpanLinks)
if err != nil {
log.Debug("Unable to marshal span links. Not adding span links to span meta.")
return
}
if s.Meta == nil {
Expand Down

0 comments on commit 10d5ddb

Please sign in to comment.