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

Apache instrumentation v1.0 #1236

Merged
merged 7 commits into from
Nov 26, 2022

Conversation

chrlic
Copy link
Member

@chrlic chrlic commented Nov 9, 2022

This PR proposes auto-instrumentation for applications running on Apache HTTPD server in K8S environment.

It also replaces earlier submitted PR #1082

For instrumentation library, the logic provided here uses https://github.com/open-telemetry/opentelemetry-cpp-contrib/tree/main/instrumentation/otel-webserver-module
For instrumentation logic itself, it adheres to the principles used for other languages already supported as much as possible.

This PR is a first in a series as discussed in #1082 and provides a method for building an image with webserver agent libraries.

Next PR will provide CRD for Apache auto-instrumentation specification and related code.

And next PR will provide the code for auto-instrumentation logic within mutating webhook, related code, and end2end tests.

@chrlic chrlic requested a review from a team November 9, 2022 11:58
@yuriolisa
Copy link
Contributor

@chrlic, @pavolloffay, I would suggest including on that PR, at least the e2e tests. WDYT?

@chrlic
Copy link
Member Author

chrlic commented Nov 14, 2022

@yuriolisa Since this PR is only about agent image build and does not do the injection itself, I do not see how to test it in the e2e test framework - as far as I can tell, all e2e tests rely currently on pre-build images. My plan was to include e2e test for the final PR. But, if you have a suggestion in this direction, I'm open to that.

Copy link
Member

@pavolloffay pavolloffay left a comment

Choose a reason for hiding this comment

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

The PR should include a github action to build and publish the image

@@ -0,0 +1,13 @@
# How to build Apache auto-instrumentation docker image
Copy link
Member

Choose a reason for hiding this comment

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

can we come up with a more explicit name (for the directory/image/readme name)? Apache is just too generic

@chrlic
Copy link
Member Author

chrlic commented Nov 21, 2022

Renamed the "apache" to "apache-httpd"
Added github action for autoinstrumentation image build for apache-httpd

@pavolloffay pavolloffay merged commit 30561f0 into open-telemetry:main Nov 26, 2022
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
* Apache Instrumentation - Agent Image Build

* Rename deafult image name

* Github bld action for Apache HTTPD autoinstr img

* Added Apache HTTPD image to publish images act

* Heading change
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.

3 participants