Skip to content

Commit

Permalink
fix: typo in metrics createExporter
Browse files Browse the repository at this point in the history
  • Loading branch information
krzko committed May 26, 2023
1 parent 860483a commit 86039c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
### Custom ###

# manual
cmd/otelgen/otelgen
/otelgen

# goreleaser
dist/
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/metrics_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func createExporter(ctx context.Context, c *cli.Context, grpcExpOpt []otlpmetric

if c.String("protocol") == "http" {
logger.Info("starting HTTP exporter")
exp, err = NewMetricExporter(ctx, "grpc", httpExpOpt)
exp, err = NewMetricExporter(ctx, "http", httpExpOpt)
if err != nil {
logger.Fatal("failed to create HTTP exporter: %v", zap.Error(err))
}
Expand Down

0 comments on commit 86039c5

Please sign in to comment.