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

Nginx Autoinstrumentation Implementation #2033

Merged
merged 50 commits into from
Oct 9, 2023

Conversation

chrlic
Copy link
Member

@chrlic chrlic commented Aug 17, 2023

This PR contains the actual implementation of Nginx autoinstrumentation, unit tests, e2e tests, and Readme.
It builds upon the #1853.

@chrlic chrlic requested a review from a team August 17, 2023 16:36
@chrlic chrlic marked this pull request as draft August 17, 2023 16:36
@chrlic chrlic marked this pull request as ready for review August 18, 2023 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.

Add the new initContainer to isAutoInstrumentationInjected (See #2051)

tests/e2e/instrumentation-nginx/01-install-app.yaml Outdated Show resolved Hide resolved
tests/e2e/instrumentation-nginx/01-install-app.yaml Outdated Show resolved Hide resolved
pkg/featuregate/featuregate.go Outdated Show resolved Hide resolved
pkg/instrumentation/sdk.go Outdated Show resolved Hide resolved
@chrlic chrlic marked this pull request as draft September 18, 2023 08:26
@chrlic chrlic marked this pull request as ready for review September 26, 2023 08:15
)

/*
Nginx injection is different from other languages in:
Copy link
Contributor

Choose a reason for hiding this comment

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

This explanation is awesome. Thanks!

Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

Things look good, but please update the publish-images github workflow

@pavolloffay pavolloffay merged commit 7e232dd into open-telemetry:main Oct 9, 2023
24 checks passed
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
* all a17n logic implementation

* nginx, podmutator tests

* sdk and upgrade tests

* refactor nginx + tests

* Readme - added Nginx

* chloggen for #PR 2033

* tests fixes

* code cleanup

* starting supported version, secContext

* moved nginx e2e tests

* unprivileged pods related fixes and tests

* unprivileged test fix

* unprivileged nginx test assert fix

* typo fix

* resource alloc for scaling tests

* typo in assert

* initContainer uses securityCtx of app container

* test for container-level securityCtx

* yaml formatting

* nginx secCtx e2e test

* typo

* Update README.md

Co-authored-by: Tyler Helmuth <[email protected]>

* Update pkg/featuregate/featuregate.go

Co-authored-by: Tyler Helmuth <[email protected]>

* README.md - Nginx to stageAlpha

* Nginx - to StageAlpha

* not needed feature flag

* Nginx alphaStage - upgrade test cases

* Nginx stageAplha - reverted bundle change

* revert of unintential change

* unintended change revert

* enable f-g operator.autoinstrumentation.nginx

* revert

* enable nginx featuregate

* enable nginx featuregate

* merge main branch - tests and typos

* multicontainer nginx fixes

* formatting

* added Nginx version build arg

---------

Co-authored-by: Tyler Helmuth <[email protected]>
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