Skip to content

Commit

Permalink
Return Adjuster Interface
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
Mahad Zaryab committed Dec 17, 2024
1 parent 3f6d3ee commit 1630e01
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/query/app/querysvc/adjuster/ipattribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var ipAttributesToCorrect = map[string]struct{}{
// IPAttribute returns an adjuster that replaces numeric "ip" attributes,
// which usually contain IPv4 packed into uint32, with their string
// representation (e.g. "8.8.8.8"").
func IPAttribute() IPAttributeAdjuster {
func IPAttribute() Adjuster {
return IPAttributeAdjuster{}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/query/app/querysvc/adjuster/resourceattributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var libraryKeys = map[string]struct{}{
// attributes from spans to the parent resource so that the UI can
// display them separately under Process.
// https://github.com/jaegertracing/jaeger/issues/4534
func ResourceAttributes() ResourceAttributesAdjuster {
func ResourceAttributes() Adjuster {
return ResourceAttributesAdjuster{}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/query/app/querysvc/adjuster/spaniduniquifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
//
// This adjuster never returns any errors. Instead it records any issues
// it encounters in Span.Warnings.
func SpanIDUniquifier() Func {
func SpanIDUniquifier() Adjuster {
return Func(func(traces ptrace.Traces) error {
adjuster := spanIDDeduper{
spansByID: make(map[pcommon.SpanID][]ptrace.Span),
Expand Down
2 changes: 1 addition & 1 deletion cmd/query/app/querysvc/adjuster/spanlinks.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
var _ Adjuster = (*LinksAdjuster)(nil)

// SpanLinks creates an adjuster that removes span links with empty trace IDs.
func SpanLinks() LinksAdjuster {
func SpanLinks() Adjuster {
return LinksAdjuster{}
}

Expand Down

0 comments on commit 1630e01

Please sign in to comment.