You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-06-27 00:21:15 +02:00
Add unparam linter (#5531)
This adds the [unparam](https://github.com/mvdan/unparam) linter. Co-authored-by: Sam Xie <sam@samxie.me> Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
@ -340,7 +340,7 @@ func createAndRegisterBatchSP(option testOption, te *testBatchExporter) sdktrace
|
||||
return sdktrace.NewBatchSpanProcessor(te, options...)
|
||||
}
|
||||
|
||||
func generateSpan(t *testing.T, tr trace.Tracer, option testOption) {
|
||||
func generateSpan(_ *testing.T, tr trace.Tracer, option testOption) {
|
||||
sc := getSpanContext()
|
||||
|
||||
for i := 0; i < option.genNumSpans; i++ {
|
||||
@ -353,7 +353,7 @@ func generateSpan(t *testing.T, tr trace.Tracer, option testOption) {
|
||||
}
|
||||
}
|
||||
|
||||
func generateSpanParallel(t *testing.T, tr trace.Tracer, option testOption) {
|
||||
func generateSpanParallel(_ *testing.T, tr trace.Tracer, option testOption) {
|
||||
sc := getSpanContext()
|
||||
|
||||
wg := &sync.WaitGroup{}
|
||||
|
Reference in New Issue
Block a user