From 9592fd9c41aaa8e0a4095b97c9f44e1aead11fd8 Mon Sep 17 00:00:00 2001 From: Min Xia Date: Thu, 2 Sep 2021 13:09:38 -0700 Subject: [PATCH] Remove the legacy gRPC port 55680 in OTLP receiver --- CHANGELOG.md | 3 +++ receiver/otlpreceiver/factory.go | 1 - receiver/otlpreceiver/otlp.go | 12 ------------ 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4750d33d4b6..0f9bc53d717 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## Unreleased +## 🛑 Breaking changes 🛑 + +- Remove the legacy gRPC port(`55680`) support in OTLP receiver ## v0.34.0 Beta diff --git a/receiver/otlpreceiver/factory.go b/receiver/otlpreceiver/factory.go index e2ee26c1e4e..0618c73d968 100644 --- a/receiver/otlpreceiver/factory.go +++ b/receiver/otlpreceiver/factory.go @@ -32,7 +32,6 @@ const ( defaultGRPCEndpoint = "0.0.0.0:4317" defaultHTTPEndpoint = "0.0.0.0:4318" - legacyGRPCEndpoint = "0.0.0.0:55680" legacyHTTPEndpoint = "0.0.0.0:55681" ) diff --git a/receiver/otlpreceiver/otlp.go b/receiver/otlpreceiver/otlp.go index a43f4381c00..2a954c18c31 100644 --- a/receiver/otlpreceiver/otlp.go +++ b/receiver/otlpreceiver/otlp.go @@ -133,18 +133,6 @@ func (r *otlpReceiver) startProtocolServers(host component.Host) error { if err != nil { return err } - if r.cfg.GRPC.NetAddr.Endpoint == defaultGRPCEndpoint { - r.logger.Info("Setting up a second GRPC listener on legacy endpoint " + legacyGRPCEndpoint) - - // Copy the config. - cfgLegacyGRPC := r.cfg.GRPC - // And use the legacy endpoint. - cfgLegacyGRPC.NetAddr.Endpoint = legacyGRPCEndpoint - err = r.startGRPCServer(cfgLegacyGRPC, host) - if err != nil { - return err - } - } } if r.cfg.HTTP != nil { r.serverHTTP = r.cfg.HTTP.ToServer(