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

fix: fix container names annotations for sdk, apache, nginx #3307

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

Joibel
Copy link
Contributor

@Joibel Joibel commented Sep 27, 2024

Found through code inspection, the ApacheHttpd, Nginx and SDK injectors do not honour their container-names annotations.

I have changed the annotation used for the container list to match the expected annotation constant which already existed in each case but was unused in the code base.

This is a breaking change if anyone is using the enablement flag with container names for these 3 injectors, which I believe would work as truthy would treat a list of container names as true.

Found through code inspection, the ApacheHttpd, Nginx and SDK
injectors do not honor their container-names annotations.

This is a breaking change if anyone is using the enablement flag with
container names for these 3 injectors, which I believe would work as
truthy would treat a list of container names as true.

Signed-off-by: Alan Clucas <alan@clucas.org>
@Joibel Joibel requested a review from a team as a code owner September 27, 2024 07:24
Copy link
Contributor

@iblancasa iblancasa left a comment

Choose a reason for hiding this comment

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

Good catch!

Please, could you add a changelog?

@IshwarKanse
Copy link
Contributor

@Joibel Thanks for the fix, I'll update the tests after this fix.

@swiatekm
Copy link
Contributor

What I find worrisome is that changing this doesn't fail any tests. Could you add a unit test? Ideally, we'd also have an e2e test exercise this function.

@IshwarKanse
Copy link
Contributor

@swiatekm The test should have checked for the ApacheHTTP, Nginx and SDK language specific instrumentation annotation. It currently only tests Java, NodeJs and Python that is the reason no tests are failing. I'll update it to check for the missing ones.

@Joibel
Copy link
Contributor Author

Joibel commented Sep 27, 2024

Good catch!

Please, could you add a changelog?

Yes, I will do.

Signed-off-by: Alan Clucas <alan@clucas.org>
@Joibel
Copy link
Contributor Author

Joibel commented Sep 30, 2024

I've added a changelog. I'm not that familiar with the tests - I could possibly write one but it looks like @IshwarKanse has offered so I'll leave it with them.

@swiatekm swiatekm merged commit 8af4383 into open-telemetry:main Sep 30, 2024
33 checks passed
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