diff --git a/config/configtelemetry/configtelemetry.go b/config/configtelemetry/configtelemetry.go index 0ec660bd77c..b8c0967c905 100644 --- a/config/configtelemetry/configtelemetry.go +++ b/config/configtelemetry/configtelemetry.go @@ -4,7 +4,6 @@ package configtelemetry // import "go.opentelemetry.io/collector/config/configtelemetry" import ( - "encoding" "errors" "fmt" "strings" @@ -30,9 +29,6 @@ const ( // that every component should generate. type Level int32 -var _ encoding.TextMarshaler = (*Level)(nil) -var _ encoding.TextUnmarshaler = (*Level)(nil) - func (l Level) String() string { switch l { case LevelNone: diff --git a/config/configtelemetry/configtelemetry_test.go b/config/configtelemetry/configtelemetry_test.go index 409a60cd6e1..27236bbe32b 100644 --- a/config/configtelemetry/configtelemetry_test.go +++ b/config/configtelemetry/configtelemetry_test.go @@ -4,11 +4,15 @@ package configtelemetry import ( + "encoding" "testing" "github.com/stretchr/testify/assert" ) +var _ encoding.TextMarshaler = (*Level)(nil) +var _ encoding.TextUnmarshaler = (*Level)(nil) + func TestUnmarshalText(t *testing.T) { tests := []struct { str []string