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
Skip links with invalid span context (#2275)
* Skip links with invalid span context * Add CHANGELOG entry * Review suggestions
This commit is contained in:
@@ -453,7 +453,7 @@ func (s *recordingSpan) Resource() *resource.Resource {
|
||||
}
|
||||
|
||||
func (s *recordingSpan) addLink(link trace.Link) {
|
||||
if !s.IsRecording() {
|
||||
if !s.IsRecording() || !link.SpanContext.IsValid() {
|
||||
return
|
||||
}
|
||||
s.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user