Skip to content

Commit

Permalink
Fix missing ref to new samplers
Browse files Browse the repository at this point in the history
  • Loading branch information
kentquirk committed Jun 20, 2023
1 parent a9533a9 commit 078840e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sample/sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ func (s *SamplerFactory) GetSamplerImplementationForKey(samplerKey string, isLeg
sampler = &RulesBasedSampler{Config: c, Logger: s.Logger, Metrics: s.Metrics}
case *config.TotalThroughputSamplerConfig:
sampler = &TotalThroughputSampler{Config: c, Logger: s.Logger, Metrics: s.Metrics}
case *config.EMAThroughputSamplerConfig:
sampler = &EMAThroughputSampler{Config: c, Logger: s.Logger, Metrics: s.Metrics}
case *config.WindowedThroughputSamplerConfig:
sampler = &WindowedThroughputSampler{Config: c, Logger: s.Logger, Metrics: s.Metrics}
default:
s.Logger.Error().Logf("unknown sampler type %T. Exiting.", c)
os.Exit(1)
Expand Down

0 comments on commit 078840e

Please sign in to comment.