Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Aug 28, 2023
1 parent a7a11a5 commit 88f18af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/otel-collector/go.mod
Expand Up @@ -11,6 +11,7 @@ require (
go.opentelemetry.io/otel v1.16.0
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.39.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.16.0
go.opentelemetry.io/otel/metric v1.16.0
go.opentelemetry.io/otel/sdk v1.16.0
go.opentelemetry.io/otel/sdk/metric v0.39.0
go.opentelemetry.io/otel/trace v1.16.0
Expand All @@ -26,7 +27,6 @@ require (
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.39.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 // indirect
go.opentelemetry.io/otel/metric v1.16.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.11.0 // indirect
Expand Down
5 changes: 4 additions & 1 deletion example/otel-collector/main.go
Expand Up @@ -42,7 +42,7 @@ import (
)

// Initialize a gRPC connection to be used by both the tracer and meter
// providers
// providers.
func initConn() (*grpc.ClientConn, error) {
ctx := context.Background()

Expand Down Expand Up @@ -175,6 +175,9 @@ func main() {
}

runCount, err := meter.Int64Counter("run", metric.WithDescription("The number of times the iteration ran"))
if err != nil {
log.Fatal(err)
}

// work begins
ctx, span := tracer.Start(
Expand Down

0 comments on commit 88f18af

Please sign in to comment.