-
Notifications
You must be signed in to change notification settings - Fork 187
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
Bring auto-instrumentation to OpenTelemetry K8s Operator #932
Bring auto-instrumentation to OpenTelemetry K8s Operator #932
Comments
Sounds like a great idea. :) Do you want to move this issue to the Operator repo? |
I raised it here because @bobstrecansky asked me so the PHP SIG can investigate & prioritize. Maybe both repos should have one issue and we link them? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity, but it can be reopened. Thank you for your contributions. |
I see value in injecting the extension, do you also want to inject the instrumentation code? |
What ever makes an application emit telemetry automatically, so yes, if it is possible to inject that as well safely (e.g. Node.js is doing it that way) |
I would like to investigate technical feasibility of this feature. The current plan is use I am not 100% sure how to automatically load instrumentations without requiring to modify application's If there is anybody thinking about starting or already started working on it - I will be glad to cooperate. |
This is something I could get excited about, and would love to pitch in and help if I can. Regarding loading instrumentations, I think that auto_prepend_file is a sensible first attempt, and I'm also supportive of updating any part of opentelemetry-php to enable this. |
Is your feature request related to a problem?
With auto instrumentation for PHP being a thing, there is an opportunity to bring it to applications running in K8s clusters via the otel k8s operator automatically.
Describe the solution you'd like
Similar to other languages it would be great to be able to turn on injection of auto instrumentation for PHP, e.g. create an Instrumentation resource that configures the auto instrumentation (copied from python):
and add an annotation to deployments:
This would require the creation of an init container, similar to the existing ones:
https://github.com/open-telemetry/opentelemetry-operator/tree/main/autoinstrumentation
and a instrumentation
php.go
athttps://github.com/open-telemetry/opentelemetry-operator/tree/main/pkg/instrumentation
cc @open-telemetry/operator-approvers
Additional context
Existing injection for other languages: https://opentelemetry.io/docs/k8s-operator/automatic/
The text was updated successfully, but these errors were encountered: