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][receiver/statsd] Refactor of hardcoded tests #28896

Conversation

kang-makes
Copy link
Contributor

Description:
This is the first step to adding UDS support to the StatsD receiver.

As I started to develop it, I saw that all tests were hardcoded to UDP and using networking and there was no possibility to add a socket communication.

PR started to get huge so I split it into two, one to refactor tests and another one that adds UDS support:

  • Removed all unused references.
  • Made a Transport helper that allows centralizing all supported protocols and constants in its package.
  • Removed all hardcoded UDP protocols and generalized testing so new protocols are easy to add.

If you need a rationale about why the changes are like this, this is the next PR I am going to submit after this one is merged: kang-makes#2

That is the PR that is going to add UDS support properly.

Link to tracking Issue:

Previous closed PR:

@kang-makes kang-makes requested a review from a team November 6, 2023 08:33
@kang-makes kang-makes changed the title Receiver/statsdreceiver/add uds support [receiver/statsd] Refactor of hardcoded tests Nov 6, 2023
@kang-makes kang-makes force-pushed the receiver/statsdreceiver/add-uds-support branch from 7b39dc2 to 892ed4f Compare November 6, 2023 09:27
@kang-makes kang-makes changed the title [receiver/statsd] Refactor of hardcoded tests [chore][receiver/statsd] Refactor of hardcoded tests Nov 20, 2023
@kang-makes kang-makes force-pushed the receiver/statsdreceiver/add-uds-support branch from 892ed4f to 7965808 Compare November 20, 2023 11:04
@kang-makes kang-makes force-pushed the receiver/statsdreceiver/add-uds-support branch from 7965808 to 51be5d3 Compare November 21, 2023 10:43
@kang-makes
Copy link
Contributor Author

Rebased :)

Copy link
Contributor

github-actions bot commented Dec 6, 2023

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Dec 6, 2023
@github-actions github-actions bot removed the Stale label Dec 13, 2023
@bogdandrutu bogdandrutu merged commit 48aa0dd into open-telemetry:main Dec 15, 2023
83 checks passed
@github-actions github-actions bot added this to the next release milestone Dec 15, 2023
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Jan 10, 2024
…28896)

**Description:** 
This is the first step to adding UDS support to the StatsD receiver.

As I started to develop it, I saw that all tests were hardcoded to UDP
and using networking and there was no possibility to add a socket
communication.

PR started to get huge so I split it into two, one to refactor tests and
another one that adds UDS support:
 * Removed all unused references.
* Made a `Transport` helper that allows centralizing all supported
protocols and constants in its package.
* Removed all hardcoded UDP protocols and generalized testing so new
protocols are easy to add.

If you need a rationale about why the changes are like this, this is the
next PR I am going to submit after this one is merged:
kang-makes#2

That is the PR that is going to add UDS support properly.

**Link to tracking Issue:**
 - open-telemetry#21385

**Previous closed PR:**
 - open-telemetry#24832
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.

5 participants