summaryrefslogtreecommitdiff
path: root/vendor/github.com/uber/jaeger-client-go/sampler.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-12-12 16:23:50 +0100
committerGitHub <noreply@github.com>2019-12-12 16:23:50 +0100
commit16de498f0a6d72881b5e961395305bfa57e15536 (patch)
tree8353403f367c59eb840b3df9c620fcdc9ab6b7eb /vendor/github.com/uber/jaeger-client-go/sampler.go
parentf81f15f42250a642f0753b5f18be61c1f24931dd (diff)
parent3dcac46026327f27d0d8b83df415f0e2b8a2fb86 (diff)
downloadpodman-16de498f0a6d72881b5e961395305bfa57e15536.tar.gz
podman-16de498f0a6d72881b5e961395305bfa57e15536.tar.bz2
podman-16de498f0a6d72881b5e961395305bfa57e15536.zip
Merge pull request #4491 from containers/dependabot/go_modules/github.com/uber/jaeger-client-go-2.20.1+incompatible
build(deps): bump github.com/uber/jaeger-client-go from 2.20.0+incompatible to 2.20.1+incompatible
Diffstat (limited to 'vendor/github.com/uber/jaeger-client-go/sampler.go')
-rw-r--r--vendor/github.com/uber/jaeger-client-go/sampler.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/uber/jaeger-client-go/sampler.go b/vendor/github.com/uber/jaeger-client-go/sampler.go
index 6195d59c5..f47004b1f 100644
--- a/vendor/github.com/uber/jaeger-client-go/sampler.go
+++ b/vendor/github.com/uber/jaeger-client-go/sampler.go
@@ -363,6 +363,9 @@ type PerOperationSamplerParams struct {
// NewPerOperationSampler returns a new PerOperationSampler.
func NewPerOperationSampler(params PerOperationSamplerParams) *PerOperationSampler {
+ if params.MaxOperations <= 0 {
+ params.MaxOperations = defaultMaxOperations
+ }
samplers := make(map[string]*GuaranteedThroughputProbabilisticSampler)
for _, strategy := range params.Strategies.PerOperationStrategies {
sampler := newGuaranteedThroughputProbabilisticSampler(