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

[chore] don't reference testutil from non-test code #37090

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

axw
Copy link
Contributor

@axw axw commented Jan 8, 2025

Description

Update various receiver factories to stop using testutil.EndpointForPort, and directly specify the default endpoint. This removes test-related packages from the main binary's dependency tree.

Link to tracking issue

N/A

Testing

N/A

Documentation

N/A

@axw axw force-pushed the receiver-factory-no-testutil branch from 0fe1bbb to 2101373 Compare January 8, 2025 09:48
Update various receiver factories to stop using
testutil.EndpointForPort, and directly specify
the default endpoint.
@axw axw force-pushed the receiver-factory-no-testutil branch from 2101373 to 3f7af72 Compare January 8, 2025 09:56
@axw axw marked this pull request as ready for review January 8, 2025 10:13
@axw axw requested a review from a team as a code owner January 8, 2025 10:13
@@ -22,8 +21,7 @@ import (
)

const (
defaultEndpoint = "0.0.0.0:4433"
Copy link
Contributor

Choose a reason for hiding this comment

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

im surprised the linters weren't complaining about defaultEndpoint not being used before 🤔

@codeboten codeboten merged commit 5825efc into open-telemetry:main Jan 8, 2025
163 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 8, 2025
@axw axw deleted the receiver-factory-no-testutil branch January 9, 2025 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants