Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default OTLP port number #1221

Merged

Conversation

tigrannajaryan
Copy link
Member

Contributes to #1148

Note that a separate port is used for OTLP/HTTP for now. There is currently work
in progress to confirm that we can use the same port. Once we have the confirmation
I will update the spec again to use one port.

Copy link
Member

@arminru arminru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also update the default mentioned in specification/protocol/exporter.md#configuration-options and the examples below.

Should we add a compliance matrix entry for using the correct default port?

tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector that referenced this pull request Nov 10, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector that referenced this pull request Nov 10, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector that referenced this pull request Nov 10, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector that referenced this pull request Nov 10, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector that referenced this pull request Nov 10, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
@tigrannajaryan
Copy link
Member Author

Corresponding change in the Collector, allowing to receive on new and legacy ports simultaneously to ease the transition open-telemetry/opentelemetry-collector#2104

@tigrannajaryan
Copy link
Member Author

Please also update the default mentioned in specification/protocol/exporter.md#configuration-options and the examples below.

Done.

Should we add a compliance matrix entry for using the correct default port?

I added this to the CHANGELOG, hopefully it is sufficient.

@bogdandrutu
Copy link
Member

@tigrannajaryan is the number confirmed?

@tigrannajaryan
Copy link
Member Author

@tigrannajaryan is the number confirmed?

@mtwo submitted the request with IANA. It will take a while to get the confirmation. I think we should move forward with the assumption that it will be accepted. On the minor chance that it will be rejected and a different port number suggested we can update the spec again, we still have time.

@carlosalberto
Copy link
Contributor

I think we should move forward with the assumption that it will be accepted. On the minor chance that it will be rejected and a different port number suggested we can update the spec again, we still have time.

+1

@carlosalberto
Copy link
Contributor

@open-telemetry/specs-approvers Anybody objects to going forward with this proposal, given that the request with IANA has been filled but it may take a while to get a confirmation? If not, I suggest merging early tomorrow or on Monday.

tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector that referenced this pull request Nov 12, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
@yurishkuro
Copy link
Member

sgtm

I actually care less about having an official IANA port than about not using ephemeral port, because the latter has a higher chance of causing instability at deployment.

@carlosalberto
Copy link
Contributor

@bogdandrutu Any opinion? ;)

tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector that referenced this pull request Nov 13, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
@bogdandrutu
Copy link
Member

SGTM, let's merge this.

@@ -445,7 +445,7 @@ connections SHOULD be configurable.

#### Default Port

The default network port for OTLP/HTTP is 55681. There is currently an [open
The default network port for OTLP/HTTP is 4318. There is currently an [open
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we not say that we try to not have 2 ports?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec now lists the same port for both OTLP/gRPC and OTLP/HTTP.

Contributes to open-telemetry#1148

Note that a separate port is used for OTLP/HTTP for now. There is currently work
in progress to confirm that we can use the same port. Once we have the confirmation
I will update the spec again to use one port.
@carlosalberto
Copy link
Contributor

Since now we have the two-ports update, it looks we are ready to merge today, right? @tigrannajaryan @bogdandrutu

@bogdandrutu
Copy link
Member

4 approves + author (TC member) - merging

@bogdandrutu bogdandrutu merged commit 4dd4ee0 into open-telemetry:master Nov 16, 2020
@tigrannajaryan tigrannajaryan deleted the feature/tigran/otlp-portnum branch November 16, 2020 22:33
tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector that referenced this pull request Nov 17, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
tigrannajaryan pushed a commit to tigrannajaryan/opentelemetry-collector that referenced this pull request Nov 18, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
bogdandrutu pushed a commit to open-telemetry/opentelemetry-collector that referenced this pull request Nov 19, 2020
This implements specification change open-telemetry/opentelemetry-specification#1221

To make transition to new port numbers less painful OTLP receiver will
also accept data on the legacy port numbers when it is configured to
use the default endpoint. Users who use the default Collector config
can continue sending data to the legacy ports and have a graceful period
to update their senders to start sending to the new ports.

Note that OTLP/HTTP continues using a separate port number from OTLP/gRPC.
There is separate work in progress to use one port for both.
TomRoSystems added a commit to TomRoSystems/opentelemetry-cpp that referenced this pull request Jan 19, 2021
hughluo added a commit to hughluo/opentelemetry.io that referenced this pull request May 12, 2021
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
* Change default OTLP port number

Contributes to open-telemetry#1148

Note that a separate port is used for OTLP/HTTP for now. There is currently work
in progress to confirm that we can use the same port. Once we have the confirmation
I will update the spec again to use one port.

* Address PR comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants