diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-23 06:15:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 06:15:04 -0800 |
commit | c5f3899cb4133922a9732aff4680bb7eea3d391b (patch) | |
tree | 0c72728147e8162969f8893ab0b1cb3cc7ee4e43 /vendor/github.com/uber/jaeger-client-go/tracer_options.go | |
parent | 4113e7152e19a4f93ce979a5c4cadd763dd37afe (diff) | |
parent | fd36a33dc31bb26182f032b3f3ed9f7b0cfb792c (diff) | |
download | podman-c5f3899cb4133922a9732aff4680bb7eea3d391b.tar.gz podman-c5f3899cb4133922a9732aff4680bb7eea3d391b.tar.bz2 podman-c5f3899cb4133922a9732aff4680bb7eea3d391b.zip |
Merge pull request #4943 from containers/dependabot/go_modules/github.com/uber/jaeger-client-go-2.22.1+incompatible
build(deps): bump github.com/uber/jaeger-client-go from 2.20.1+incompatible to 2.22.1+incompatible
Diffstat (limited to 'vendor/github.com/uber/jaeger-client-go/tracer_options.go')
-rw-r--r-- | vendor/github.com/uber/jaeger-client-go/tracer_options.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/uber/jaeger-client-go/tracer_options.go b/vendor/github.com/uber/jaeger-client-go/tracer_options.go index 469685bb4..f016484b9 100644 --- a/vendor/github.com/uber/jaeger-client-go/tracer_options.go +++ b/vendor/github.com/uber/jaeger-client-go/tracer_options.go @@ -144,6 +144,18 @@ func (tracerOptions) MaxTagValueLength(maxTagValueLength int) TracerOption { } } +// MaxLogsPerSpan limits the number of Logs in a span (if set to a nonzero +// value). If a span has more logs than this value, logs are dropped as +// necessary (and replaced with a log describing how many were dropped). +// +// About half of the MaxLogsPerSpan logs kept are the oldest logs, and about +// half are the newest logs. +func (tracerOptions) MaxLogsPerSpan(maxLogsPerSpan int) TracerOption { + return func(tracer *Tracer) { + tracer.options.maxLogsPerSpan = maxLogsPerSpan + } +} + func (tracerOptions) ZipkinSharedRPCSpan(zipkinSharedRPCSpan bool) TracerOption { return func(tracer *Tracer) { tracer.options.zipkinSharedRPCSpan = zipkinSharedRPCSpan |