Fix issues raised by golangci-lint (#29)

These popped up when invoking `make`.

Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
This commit is contained in:
Krzesimir Nowak 2020-05-05 17:46:44 +02:00 committed by GitHub
parent 80f1fc5aa7
commit f77457174e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 9 deletions

View File

@ -6,6 +6,7 @@ import (
"regexp"
"github.com/DataDog/datadog-go/statsd"
"go.opentelemetry.io/otel/api/core"
export "go.opentelemetry.io/otel/sdk/export/metric"
"go.opentelemetry.io/otel/sdk/export/metric/aggregator"

View File

@ -5,6 +5,7 @@ import (
"time"
"github.com/DataDog/sketches-go/ddsketch"
"go.opentelemetry.io/contrib/exporters/metric/datadog"
"go.opentelemetry.io/otel/api/global"
"go.opentelemetry.io/otel/api/metric"

View File

@ -6,4 +6,3 @@ require (
github.com/stretchr/testify v1.5.1
go.opentelemetry.io/otel v0.4.3
)

View File

@ -34,9 +34,6 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
go.opentelemetry.io v0.1.0 h1:EANZoRCOP+A3faIlw/iN6YEWoYb1vleZRKm1EvH8T48=
go.opentelemetry.io/otel v0.4.2 h1:nT+GOqqRR1cIY92xmo1DeiXLHtIlXH1KLRgnsnhuNrs=
go.opentelemetry.io/otel v0.4.2/go.mod h1:OgNpQOjrlt33Ew6Ds0mGjmcTQg/rhUctsbkRdk/g1fw=
go.opentelemetry.io/otel v0.4.3 h1:CroUX/0O1ZDcF0iWOO8gwYFWb5EbdSF0/C1yosO+Vhs=
go.opentelemetry.io/otel v0.4.3/go.mod h1:jzBIgIzK43Iu1BpDAXwqOd6UPsSAk+ewVZ5ofSXw4Ek=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=

View File

@ -31,11 +31,6 @@ var testLabels = []core.KeyValue{
key.Float64("E", 1.5),
}
var testResources = []core.KeyValue{
key.String("R1", "V1"),
key.String("R2", "V2"),
}
func TestLabelSyntax(t *testing.T) {
encoder := dogstatsd.NewLabelEncoder()