diff --git a/cmd/opentelemetry/app/defaultconfig/default_config.go b/cmd/opentelemetry/app/defaultconfig/default_config.go index 5169e2fe4b7..8b02849f7e5 100644 --- a/cmd/opentelemetry/app/defaultconfig/default_config.go +++ b/cmd/opentelemetry/app/defaultconfig/default_config.go @@ -207,13 +207,13 @@ func createExporters(component ComponentType, storageTypes string, factories com func enableAgentUDPEndpoints(jaeger *jaegerreceiver.Config) { if jaeger.ThriftCompact == nil { jaeger.ThriftCompact = &jaegerreceiver.ProtocolUDP{ - Endpoint: udpThriftCompactEndpoint, + Endpoint: udpThriftCompactEndpoint, ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(), } } if jaeger.ThriftBinary == nil { jaeger.ThriftBinary = &jaegerreceiver.ProtocolUDP{ - Endpoint: udpThriftBinaryEndpoint, + Endpoint: udpThriftBinaryEndpoint, ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(), } } diff --git a/cmd/opentelemetry/app/receiver/jaegerreceiver/jaeger_receiver.go b/cmd/opentelemetry/app/receiver/jaegerreceiver/jaeger_receiver.go index f630aea771c..98dc7cf731b 100644 --- a/cmd/opentelemetry/app/receiver/jaegerreceiver/jaeger_receiver.go +++ b/cmd/opentelemetry/app/receiver/jaegerreceiver/jaeger_receiver.go @@ -70,13 +70,13 @@ func configureAgent(v *viper.Viper, cfg *jaegerreceiver.Config) { aOpts.InitFromViper(v) if v.IsSet(thriftBinaryHostPort) { cfg.ThriftBinary = &jaegerreceiver.ProtocolUDP{ - Endpoint: v.GetString(thriftBinaryHostPort), + Endpoint: v.GetString(thriftBinaryHostPort), ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(), } } if v.IsSet(thriftCompactHostPort) { cfg.ThriftCompact = &jaegerreceiver.ProtocolUDP{ - Endpoint: v.GetString(thriftCompactHostPort), + Endpoint: v.GetString(thriftCompactHostPort), ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(), } } diff --git a/cmd/opentelemetry/app/receiver/jaegerreceiver/jaeger_receiver_test.go b/cmd/opentelemetry/app/receiver/jaegerreceiver/jaeger_receiver_test.go index 5acb74dbd7d..d19ab0e2cc6 100644 --- a/cmd/opentelemetry/app/receiver/jaegerreceiver/jaeger_receiver_test.go +++ b/cmd/opentelemetry/app/receiver/jaegerreceiver/jaeger_receiver_test.go @@ -73,7 +73,7 @@ func TestDefaultValueFromViper(t *testing.T) { expected: &jaegerreceiver.Config{ Protocols: jaegerreceiver.Protocols{ ThriftCompact: &jaegerreceiver.ProtocolUDP{ - Endpoint: "localhost:9999", + Endpoint: "localhost:9999", ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(), }, }, @@ -85,7 +85,7 @@ func TestDefaultValueFromViper(t *testing.T) { expected: &jaegerreceiver.Config{ Protocols: jaegerreceiver.Protocols{ ThriftBinary: &jaegerreceiver.ProtocolUDP{ - Endpoint: "localhost:8888", + Endpoint: "localhost:8888", ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(), }, }, @@ -124,7 +124,7 @@ func TestDefaultValueFromViper(t *testing.T) { Endpoint: "localhost:8089", }, ThriftBinary: &jaegerreceiver.ProtocolUDP{ - Endpoint: "localhost:2222", + Endpoint: "localhost:2222", ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(), }, },