From fcf59676e6314dc18afc0e817f977f11a589f0a8 Mon Sep 17 00:00:00 2001 From: Mahad Zaryab Date: Thu, 26 Sep 2024 23:09:08 -0400 Subject: [PATCH] Simplify Config Signed-off-by: Mahad Zaryab --- cmd/jaeger/internal/extension/jaegerquery/server.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/cmd/jaeger/internal/extension/jaegerquery/server.go b/cmd/jaeger/internal/extension/jaegerquery/server.go index 4f2258a50d3..b00b8f03e6c 100644 --- a/cmd/jaeger/internal/extension/jaegerquery/server.go +++ b/cmd/jaeger/internal/extension/jaegerquery/server.go @@ -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" @@ -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 } }