Skip to content

Conversation

@sfleen
Copy link
Contributor

@sfleen sfleen commented Apr 14, 2025

Now that the default tracing protocol is OpenTelemetry, this changes the default port for traces to the OpenTelemetry port on the collector instead of the OpenCensus one.

The current default port, matched with the current default trace protocol of OpenTelemetry, is currently broken as it causes traces to be sent to a collector port that expects OpenCensus traces. This is technically a breaking change, but it is less breaking than the change of the default protocol to OpenTelemetry.

More explicitly, if a user only used the defaults, this change brings them from a broken state to a working state. If a user brings their own tracing infrastructure with a custom collector address, this change doesn't affect them at all. The only users that may be broken by this are ones that explicitly set the protocol to OpenCensus, but we expect this to be rare as OpenCensus as a protocol has been sunset for a few years now.

@sfleen sfleen requested a review from a team as a code owner April 14, 2025 17:10
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

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

Tested this by running through https://linkerd.io/2-edge/tasks/distributed-tracing/ and confirmed that with this change, Linkerd proxy spans make it into jaeger.

@sfleen would you mind updating the description on this PR with more context about the state of the world before and after this PR (i.e. the way in which the defaults are currently broken and how this PR fixes them) so that we can understand the history if we ever need to look back at this in the future.

@sfleen sfleen changed the title Set correct default port for tracing feat(tracing): Set correct default port for tracing Apr 16, 2025
Now that the default tracing protocol is OpenTelemetry, this changes the default port for traces to the OpenTelemetry port on the collector instead of the OpenCensus one.

Signed-off-by: Scott Fleener <[email protected]>
@sfleen sfleen force-pushed the sfleen/otel-port branch from 17d277e to da93295 Compare April 16, 2025 14:16
@zaharidichev zaharidichev merged commit 80dcbb1 into main Apr 16, 2025
67 of 69 checks passed
@zaharidichev zaharidichev deleted the sfleen/otel-port branch April 16, 2025 15:20
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.

4 participants