diff --git a/cmd/query/app/querysvc/adjuster/ipattribute.go b/cmd/query/app/querysvc/adjuster/ipattribute.go index cd3b9bb1340..c01c943c8ba 100644 --- a/cmd/query/app/querysvc/adjuster/ipattribute.go +++ b/cmd/query/app/querysvc/adjuster/ipattribute.go @@ -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{} } diff --git a/cmd/query/app/querysvc/adjuster/resourceattributes.go b/cmd/query/app/querysvc/adjuster/resourceattributes.go index e995088d101..37e1991e96f 100644 --- a/cmd/query/app/querysvc/adjuster/resourceattributes.go +++ b/cmd/query/app/querysvc/adjuster/resourceattributes.go @@ -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{} } diff --git a/cmd/query/app/querysvc/adjuster/spaniduniquifier.go b/cmd/query/app/querysvc/adjuster/spaniduniquifier.go index 640cca236d3..477c01ef07b 100644 --- a/cmd/query/app/querysvc/adjuster/spaniduniquifier.go +++ b/cmd/query/app/querysvc/adjuster/spaniduniquifier.go @@ -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), diff --git a/cmd/query/app/querysvc/adjuster/spanlinks.go b/cmd/query/app/querysvc/adjuster/spanlinks.go index 68c3ef3de62..9cab6c640f4 100644 --- a/cmd/query/app/querysvc/adjuster/spanlinks.go +++ b/cmd/query/app/querysvc/adjuster/spanlinks.go @@ -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{} }