-
Notifications
You must be signed in to change notification settings - Fork 440
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
Block pod creating on error in opentelemetry-auto-intrumentation #1955
Comments
Couple questions:
Can you share the error? If the initContainer failed to start then the pod should not have started either. |
@TylerHelmuth Thank you for take time to read.
The initContainer was not injected in the PODs when the operator was down. When the operator was running the initContainer run with exit code 0 but I got the following error:
My intention is when I get and any error on the initContainer running or when the InitContainer is not added for any reason to the POD the application does not start. |
Do you mean |
I am using it in a java application, so based on it it is a |
Same problem here. I use java auto-insturmentation. sometimes otel operator is down. if a pod is deployed while operator is down it does not get the initContainer injected and application start anyway. Now I have an application running without metrics or logs available. Can I somehow make sure that a pod will fail to start if it has the auto instrumentation annotation but does not have instrumentation injected? Or is there a way to configure operator to restart deployments if it detects that there is an autoinstrumentation annotation but no actual instrumentation (in case of java an init container) injected? |
I installed opentelemetry-operator and I configured opentelemetry-auto-instrumentations with the correct annotations. Sometimes, some application did not send the telemetry, debuging it I could find that the opentelemetry-auto-instrumentations sidecard was not injected or sometimes opentelemetry-auto-instrumentations got an error but the application in both cases started.
Is possible to set some configuration at the values.yaml of the operator, to be able to not start the application if the opentelemetry-auto-instrumentations container is not running or the container is missing as sidecard ?
The text was updated successfully, but these errors were encountered: