You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2024. It is now read-only.
Describe the bug
Importing jaeger-client-go adds a dependency on the standard library "testing" package. This is undesirable because production Go programs should not depend on the testing package. In addition to unnecessary bloat, "testing" adds a bunch of command line flags.
Here is the dependency graph that leads to "testing":
I was mistaken on the flags issue. In earlier versions of Go if you had an import of "testing" it would register a bunch of test-specific flags so that your program's help output would include things like:
-test.bench regexp
run only benchmarks matching regexp
-test.benchmem
print memory allocations for benchmarks
-test.benchtime d
run each benchmark for duration d (default 1s)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Importing
jaeger-client-go
adds a dependency on the standard library "testing" package. This is undesirable because production Go programs should not depend on the testing package. In addition to unnecessary bloat, "testing" adds a bunch of command line flags.Here is the dependency graph that leads to "testing":
jaeger-client-go/thrift/logger.go is the file that imports "testing"
To Reproduce
go list -deps github.com/uber/jaeger-client-go | grep '^testing$'
Expected behavior
jaeger-client-go should not depend on "testing".
Version (please complete the following information):
Found in v2.29.0, not found in v2.28.0.
The text was updated successfully, but these errors were encountered: