-
Notifications
You must be signed in to change notification settings - Fork 459
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
Using custom auto-instrumentation distributions/images #752
Comments
Hi @svrnm - The operator allows using a different docker image for sourcing instrumentation, so I think that the operator probably has the needed extension point for this. We probably need better documentation on how to build a custom docker image for user needs. For first point, Replacing with an entirely different distro is less obvious how to make it user friendly. I'm only really familiar with Java distros, and I think some docs that use our very trivial Dockerfile would be fine. Any thoughts on how to customize the actual build scripts for the other packages? |
Agreed, as you can see from me opening this issue people might not be aware of this. I think a quick fix is just writing that in simple words at the end of the relevant section in the docs, e.g. (reusing your words):
Next step would be adding some simple examples.
So, far java someone would replace the URL in this line:
with something like
Correct? For python & node.js it depends on how the distribution is created:
It sounds like there might be some language-specific best practices for creating distributions, so that they are compatible with this. |
@svrnm your assumptions are correct. As @anuraaga mentioned, using custom images is something that users can do right now, it just needs to be documented. In some parts of the operator code we are also checking for things like what variable names are specified in the CR and if the variable name does not have the right prefix (at the moment OTEL_, SPLUNK_) then an error is thrown, however we are open to generalize that for any vendor distribution. |
@svrnm are you willing to open a PR and document how a custom image can be built? |
i will try to document it. |
@pavolloffay , @anuraaga: @cuichenli took care of it, see #762, this looks good to me. |
Auto-instrumentation injection is a great feature for people to get started with OpenTelemetry easily (because of that it's also mentioned in the docs now 😄 ).
It would be great if the end-user would have more flexibility on configuring the different injections:
-Dotel.javaagent.extensions for java
javaagent.jar
,opentelemetry-distro
,@opentelemetry/sdk-node
Would this be an extension to the operator that would be worth pursuing?
The text was updated successfully, but these errors were encountered: