Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Jan 14, 2025
1 parent e64c036 commit 51071ce
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 28 deletions.
2 changes: 1 addition & 1 deletion contrib/aws/internal/span_pointers/span_pointers.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func HandleS3Operation(in middleware.DeserializeInput, out middleware.Deserializ
"link.kind": LinkKind,
},
}
span.AddSpanLinks(link)
//span.AddSpanLinks(link)
}

// generatePointerHash generates a unique hash from an array of strings by joining them with | before hashing.
Expand Down
3 changes: 0 additions & 3 deletions ddtrace/ddtrace.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ type Span interface {
// item should propagate to all descendant spans, both in- and cross-process.
SetBaggageItem(key, val string)

// AddSpanLinks appends the given span links.
AddSpanLinks(links ...SpanLink)

// Finish finishes the current span with the given options. Finish calls should be idempotent.
Finish(opts ...FinishOption)

Expand Down
3 changes: 0 additions & 3 deletions ddtrace/internal/globaltracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ func (NoopSpan) BaggageItem(_ string) string { return "" }
// SetBaggageItem implements ddtrace.Span.
func (NoopSpan) SetBaggageItem(_, _ string) {}

// AddSpanLinks implements ddtrace.Span
func (NoopSpan) AddSpanLinks(_ ...ddtrace.SpanLink) {}

// Finish implements ddtrace.Span.
func (NoopSpan) Finish(_ ...ddtrace.FinishOption) {}

Expand Down
6 changes: 0 additions & 6 deletions ddtrace/mocktracer/mockspan.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ type mockspan struct {
links []ddtrace.SpanLink
}

func (s *mockspan) AddSpanLinks(links ...ddtrace.SpanLink) {
//TODO implement me
panic("implement me")
}

// SetTag sets a given tag on the span.
func (s *mockspan) SetTag(key string, value interface{}) {
s.Lock()
Expand All @@ -134,7 +129,6 @@ func (s *mockspan) SetTag(key string, value interface{}) {
}
}
s.tags[key] = value
fmt.Printf("Done setting tags: %+v\n", s.tags)
}

func (s *mockspan) FinishTime() time.Time {
Expand Down
5 changes: 0 additions & 5 deletions ddtrace/tracer/civisibility_tslv.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,6 @@ func (e *ciVisibilityEvent) SetBaggageItem(key, val string) {
e.span.SetBaggageItem(key, val)
}

// AddSpanLinks iml
func (e *ciVisibilityEvent) AddSpanLinks(links ...ddtrace.SpanLink) {
e.span.SpanLinks = append(e.span.SpanLinks, links...)
}

// Finish completes the event's span with optional finish options.
//
// Parameters:
Expand Down
10 changes: 0 additions & 10 deletions ddtrace/tracer/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,6 @@ func (s *span) setMetric(key string, v float64) {
}
}

// AddSpanLinks implements ddtrace.Span.
func (s *span) AddSpanLinks(links ...ddtrace.SpanLink) {
s.Lock()
defer s.Unlock()
if s.finished {
return
}
s.SpanLinks = append(s.SpanLinks, links...)
}

// Finish closes this Span (but not its children) providing the duration
// of its part of the tracing session.
func (s *span) Finish(opts ...ddtrace.FinishOption) {
Expand Down

0 comments on commit 51071ce

Please sign in to comment.