Skip to content

Commit

Permalink
Fix issues raised by golangci-lint (#29)
Browse files Browse the repository at this point in the history
These popped up when invoking `make`.

Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
  • Loading branch information
krnowak and lizthegrey authored May 5, 2020
1 parent 80f1fc5 commit f774571
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions exporters/metric/datadog/datadog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions exporters/metric/datadog/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion exporters/metric/dogstatsd/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ require (
github.com/stretchr/testify v1.5.1
go.opentelemetry.io/otel v0.4.3
)

3 changes: 0 additions & 3 deletions exporters/metric/dogstatsd/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
5 changes: 0 additions & 5 deletions exporters/metric/dogstatsd/labels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit f774571

Please sign in to comment.