From 457bb94ff57f491022432b6285d8d6e47a6d7a92 Mon Sep 17 00:00:00 2001 From: afzal442 Date: Thu, 17 Aug 2023 16:12:45 +0530 Subject: [PATCH] rmvs jaeger-client const Signed-off-by: afzal442 --- plugin/sampling/strategystore/adaptive/aggregator.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugin/sampling/strategystore/adaptive/aggregator.go b/plugin/sampling/strategystore/adaptive/aggregator.go index 2b76a3c7076..3a72a16481e 100644 --- a/plugin/sampling/strategystore/adaptive/aggregator.go +++ b/plugin/sampling/strategystore/adaptive/aggregator.go @@ -18,8 +18,6 @@ import ( "sync" "time" - "github.com/uber/jaeger-client-go" - "github.com/jaegertracing/jaeger/cmd/collector/app/sampling/model" "github.com/jaegertracing/jaeger/cmd/collector/app/sampling/strategystore" "github.com/jaegertracing/jaeger/pkg/metrics" @@ -27,7 +25,8 @@ import ( ) const ( - maxProbabilities = 10 + maxProbabilities = 10 + SamplerTypeProbabilistic = "probabilistic" ) type aggregator struct { @@ -106,7 +105,7 @@ func (a *aggregator) RecordThroughput(service, operation, samplerType string, pr // Only if we see probabilistically sampled root spans do we increment the throughput counter, // for lowerbound sampled spans, we don't increment at all but we still save a count of 0 as // the throughput so that the adaptive sampling processor is made aware of the endpoint. - if samplerType == jaeger.SamplerTypeProbabilistic { + if samplerType == SamplerTypeProbabilistic { throughput.Count++ } }