Skip to content

Commit

Permalink
Simplify Config
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
  • Loading branch information
mahadzaryab1 committed Sep 27, 2024
1 parent eb9d713 commit fcf5967
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions cmd/jaeger/internal/extension/jaegerquery/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import (

"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/component/componentstatus"
"go.opentelemetry.io/collector/config/configgrpc"
"go.opentelemetry.io/collector/config/confighttp"
"go.opentelemetry.io/collector/config/confignet"
"go.opentelemetry.io/collector/extension"
"go.opentelemetry.io/collector/extension/extensioncapabilities"

Expand Down Expand Up @@ -163,14 +160,8 @@ func (s *server) createMetricReader(host component.Host) (metricsstore.Reader, e

func (s *server) makeQueryOptions() *queryApp.QueryOptions {
return &queryApp.QueryOptions{
HTTP: confighttp.ServerConfig{
Endpoint: s.config.HTTP.Endpoint,
},
GRPC: configgrpc.ServerConfig{
NetAddr: confignet.AddrConfig{
Endpoint: s.config.GRPC.NetAddr.Endpoint,
},
},
HTTP: s.config.HTTP,
GRPC: s.config.GRPC,
// TODO handle TLS
}
}
Expand Down

0 comments on commit fcf5967

Please sign in to comment.