Skip to content

Commit

Permalink
Remove unused code (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogaca-dd authored Dec 10, 2024
1 parent 384e0e9 commit 4dd0faf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/otlp/metrics/metrics_translator_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"go.opentelemetry.io/collector/component/componenttest"
"go.opentelemetry.io/collector/pdata/pmetric"
"go.uber.org/zap"

Expand All @@ -45,15 +44,13 @@ var inputTable = []struct {
{input: 10000000},
}

func newBenchmarkTranslator(b *testing.B, logger *zap.Logger, opts ...TranslatorOption) *Translator {
func newBenchmarkTranslator(b *testing.B, _ *zap.Logger, opts ...TranslatorOption) *Translator {
options := append([]TranslatorOption{
WithFallbackSourceProvider(testProvider("fallbackHostname")),
WithHistogramMode(HistogramModeDistributions),
WithNumberMode(NumberModeCumulativeToDelta),
}, opts...)

set := componenttest.NewNopTelemetrySettings()
set.Logger = logger
return NewTestTranslator(b, options...)
}

Expand Down

0 comments on commit 4dd0faf

Please sign in to comment.