Skip to content

Commit

Permalink
Add flags to main
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
  • Loading branch information
pavolloffay committed Mar 25, 2020
1 parent c531554 commit d4afe35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/opentelemetry-collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

jflags "github.com/jaegertracing/jaeger/cmd/flags"
"github.com/jaegertracing/jaeger/cmd/opentelemetry-collector/app/defaults"
"github.com/jaegertracing/jaeger/cmd/opentelemetry-collector/app/exporter/cassandra"
"github.com/jaegertracing/jaeger/cmd/opentelemetry-collector/app/exporter/kafka"
jconfig "github.com/jaegertracing/jaeger/pkg/config"
)
Expand Down Expand Up @@ -59,6 +60,7 @@ func main() {
cmd,
jflags.AddConfigFileFlag,
kafka.DefaultOptions().AddFlags,
cassandra.DefaultOptions().AddFlags,
)

// parse flags to propagate Jaeger config file flag value to viper
Expand Down

0 comments on commit d4afe35

Please sign in to comment.